diff --git a/.gitignore b/.gitignore index 0a4ba4a8..87ae0491 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/examples/docker/fitness-tracker/Dockerfile b/examples/docker/fitness-tracker/Dockerfile new file mode 100644 index 00000000..d6092234 --- /dev/null +++ b/examples/docker/fitness-tracker/Dockerfile @@ -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"] \ No newline at end of file diff --git a/examples/docker/fitness-tracker/app.py b/examples/docker/fitness-tracker/app.py index 1fc0fac4..932e169f 100644 --- a/examples/docker/fitness-tracker/app.py +++ b/examples/docker/fitness-tracker/app.py @@ -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(), ) diff --git a/examples/docker/fitness-tracker/fitness-rag.png b/examples/docker/fitness-tracker/fitness-rag.png new file mode 100644 index 00000000..c23ec9ae Binary files /dev/null and b/examples/docker/fitness-tracker/fitness-rag.png differ