Skip to content

Commit

Permalink
finalize deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
lfunderburk committed Jan 9, 2024
1 parent 9fc34f3 commit 449b6c7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,4 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
*.json
8 changes: 8 additions & 0 deletions examples/docker/fitness-tracker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:3.11

COPY app.py app.py
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt


ENTRYPOINT ["solara", "run", "app.py", "--host=0.0.0.0", "--port=80"]
2 changes: 1 addition & 1 deletion examples/docker/fitness-tracker/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def document_store_and_pipeline(documents):
rag_prompt = PromptTemplate(
prompt="""Synthesize a brief answer from the following text for the given question.
Provide a clear and concise response that summarizes the key points and information presented in the text.
Your answer should be in your own words and be no longer than 50 words.
Your answer should be in your own words and be no longer than 200 words.
\n\n Related text: {join(documents)} \n\n Question: {query} \n\n Answer:""",
output_parser=AnswerParser(),
)
Expand Down
Binary file added examples/docker/fitness-tracker/fitness-rag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 449b6c7

Please sign in to comment.