-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f52ded0
Showing
26 changed files
with
3,028 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
AWS_ACCESS_KEY_ID= | ||
AWS_SECRET_ACCESS_KEY= | ||
AWS_REGION= | ||
GROQ_API_KEY= | ||
OPENAI_API_KEY= | ||
QDRANT_URL= | ||
QDRANT_API_KEY= | ||
COLLECTION_NAME= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
documents | ||
.env | ||
record_manager_cache.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# app/Dockerfile | ||
|
||
FROM python:3.9-slim | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
curl \ | ||
git \ | ||
software-properties-common \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY requirements.txt requirements.txt | ||
RUN pip3 install -r requirements.txt | ||
|
||
EXPOSE 8501 | ||
|
||
# HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health | ||
|
||
# COPY config.yaml config.yaml | ||
# COPY .env .env | ||
RUN mkdir /documents/ | ||
COPY utils/ utils/ | ||
COPY main.py main.py | ||
# COPY certs certs | ||
|
||
#for normal deploy | ||
# ENTRYPOINT ["streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.sslCertFile=/app/certs/app.riassume.com+4.pem", "--server.sslKeyFile=/app/certs/app.riassume.com+4-key.pem"] | ||
ENTRYPOINT ["streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0"] | ||
|
||
#for Cloud Run deploy | ||
# ENTRYPOINT ["streamlit", "run", "main.py", "--server.port=8080", "--server.address=0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# References | ||
|
||
* [Build a basic LLM chat app | ||
](https://docs.streamlit.io/develop/tutorials/llms/build-conversational-apps) | ||
|
||
* [Retrieval Augmented Generation + Citations(RAG+C) with Cohere + Langchain + Qdrant](https://medium.com/@50_shades_of_gradient/retrieval-augmented-generation-citations-rag-c-with-cohere-langchain-qdrant-157f9b4cce22) | ||
|
||
* [Exploring LangChain Chains & Agents: A Quick Overview](https://medium.com/@kbdhunga/exploring-langchain-chains-agents-a-quick-overview-9d0a8c4d7ba0) |
Oops, something went wrong.