Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
riolaf05 committed Jun 20, 2024
0 parents commit f52ded0
Show file tree
Hide file tree
Showing 26 changed files with 3,028 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .env.template
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=
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
documents
.env
record_manager_cache.sql
33 changes: 33 additions & 0 deletions Dockerfile
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"]
8 changes: 8 additions & 0 deletions README.md
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)
Loading

0 comments on commit f52ded0

Please sign in to comment.