Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyAteia committed Oct 28, 2024
1 parent 9afe073 commit d41d29c
Show file tree
Hide file tree
Showing 8 changed files with 3,302 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/local-docker-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Local Docker Deploy

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: self-hosted

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build Docker container
run: |
docker build -t bioragent .
- name: Stop and remove existing Docker container if running
run: |
if [ "$(docker ps -aq -f name=bioragent)" ]; then
docker stop bioragent || true
docker rm bioragent || true
fi
- name: Run Docker container
run: |
docker run -d --name bioragent --restart unless-stopped -p 127.0.0.1:7865:7860 -e GEMIN_API_KEY=${{ secrets.GEMINI_API_KEY }} -e ELASTICSEARCH_HOST=${{ secrets.ELASTICSEARCH_HOST }} -e ELASTICSEARCH_PASSWORD=${{ secrets.ELASTICSEARCH_PASSWORD }} -e ELASTICSEARCH_USER=${{ secrets.ELASTICSEARCH_USER }} bioragent
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.12.2-slim

WORKDIR /app

COPY app/ .

RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 7860
CMD ["python", "app.py"]
255 changes: 255 additions & 0 deletions app/05_QA_Ideal_11B1-3-4_255.jsonl

Large diffs are not rendered by default.

1,277 changes: 1,277 additions & 0 deletions app/2024-03-26_19-24-27_claude-3-opus-20240229_11B1-10-Shot_Retrieval.csv

Large diffs are not rendered by default.

946 changes: 946 additions & 0 deletions app/Snippet_Extraction_Examples.jsonl

Large diffs are not rendered by default.

75 changes: 75 additions & 0 deletions app/Snippet_Reranking_Examples.jsonl

Large diffs are not rendered by default.

Loading

0 comments on commit d41d29c

Please sign in to comment.