Skip to content

Commit 5af38cd

Browse files
committed
feat: update .gitignore to include .chat_env and .idea; add deploy script for Docker setup
1 parent 207fabb commit 5af38cd

3 files changed

Lines changed: 23 additions & 163 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ __pycache__/
1717
responses/
1818
db/knowledge_base/*
1919
db/chroma/*
20-
*.md
20+
*.md
21+
.chat_env
22+
.idea

deploy.ps1

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Exit on error
2+
$ErrorActionPreference = "Stop"
3+
4+
# Prepare the database for inclusion in Docker image
5+
& ./prepare-db.ps1
6+
7+
# Build and start the Docker containers
8+
# docker-compose up -d
9+
10+
docker buildx build `
11+
--platform linux/amd64 `
12+
-t rndmcodeguy/rag-chat-api:v1.0.2 `
13+
--build-arg GOOGLE_API_KEY=$Env:GOOGLE_API_KEY `
14+
--build-arg GITHUB_TOKEN=$Env:GITHUB_TOKEN `
15+
--build-arg CHROMA_PATH=$Env:CHROMA_PATH `
16+
--build-arg DATA_STORE_PATH=$Env:DATA_STORE_PATH `
17+
--push .
18+
19+
Write-Host "API is running at http://localhost:8000"
20+
Write-Host "To test it, try: curl -X POST http://localhost:8000/query -H 'Content-Type: application/json' -d '{\"query\":\"How to install rcg?\"}'"

requirements.txt

Lines changed: 0 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -1,162 +0,0 @@
1-
## The following requirements were added by pip freeze:
2-
aiofiles==24.1.0
3-
aiohappyeyeballs==2.6.1
4-
aiohttp==3.11.16
5-
aiosignal==1.3.2
6-
annotated-types==0.7.0
7-
anyio==4.9.0
8-
asgiref==3.8.1
9-
astroid==3.3.9
10-
attrs==25.3.0
11-
backoff==2.2.1
12-
bcrypt==4.3.0
13-
beautifulsoup4==4.13.3
14-
black==25.1.0
15-
build==1.2.2.post1
16-
cachetools==5.5.2
17-
certifi==2025.1.31
18-
cffi==1.17.1
19-
chardet==5.2.0
20-
charset-normalizer==3.4.1
21-
chroma-hnswlib==0.7.6
22-
chromadb==0.6.3
23-
click==8.1.8
24-
coloredlogs==15.0.1
25-
cryptography==44.0.2
26-
dataclasses-json==0.6.7
27-
Deprecated==1.2.18
28-
dill==0.3.9
29-
distro==1.9.0
30-
durationpy==0.9
31-
emoji==2.14.1
32-
eval_type_backport==0.2.2
33-
fastapi==0.115.9
34-
filelock==3.18.0
35-
filetype==1.2.0
36-
flatbuffers==25.2.10
37-
frozenlist==1.5.0
38-
fsspec==2025.3.2
39-
google-ai-generativelanguage==0.6.17
40-
google-api-core==2.24.2
41-
google-auth==2.38.0
42-
google-genai==1.10.0
43-
googleapis-common-protos==1.69.2
44-
grpcio==1.71.0
45-
grpcio-status==1.71.0
46-
h11==0.14.0
47-
html5lib==1.1
48-
httpcore==1.0.7
49-
httptools==0.6.4
50-
httpx==0.28.1
51-
httpx-sse==0.4.0
52-
huggingface-hub==0.30.2
53-
humanfriendly==10.0
54-
idna==3.10
55-
importlib_metadata==8.6.1
56-
importlib_resources==6.5.2
57-
isort==6.0.1
58-
joblib==1.4.2
59-
jsonpatch==1.33
60-
jsonpointer==3.0.0
61-
jsonschema==4.23.0
62-
jsonschema-specifications==2024.10.1
63-
kubernetes==32.0.1
64-
langchain==0.3.23
65-
langchain-chroma==0.2.2
66-
langchain-community==0.3.21
67-
langchain-core==0.3.51
68-
langchain-google-genai==2.1.2
69-
langchain-text-splitters==0.3.8
70-
langdetect==1.0.9
71-
langsmith==0.3.27
72-
lxml==5.3.2
73-
Markdown==3.7
74-
markdown-it-py==3.0.0
75-
marshmallow==3.26.1
76-
mccabe==0.7.0
77-
mdurl==0.1.2
78-
mmh3==5.1.0
79-
monotonic==1.6
80-
mpmath==1.3.0
81-
multidict==6.2.0
82-
mypy-extensions==1.0.0
83-
nest-asyncio==1.6.0
84-
nltk==3.9.1
85-
numpy==1.26.4
86-
oauthlib==3.2.2
87-
olefile==0.47
88-
onnxruntime==1.19.0
89-
opentelemetry-api==1.31.1
90-
opentelemetry-exporter-otlp-proto-common==1.31.1
91-
opentelemetry-exporter-otlp-proto-grpc==1.31.1
92-
opentelemetry-instrumentation==0.52b1
93-
opentelemetry-instrumentation-asgi==0.52b1
94-
opentelemetry-instrumentation-fastapi==0.52b1
95-
opentelemetry-proto==1.31.1
96-
opentelemetry-sdk==1.31.1
97-
opentelemetry-semantic-conventions==0.52b1
98-
opentelemetry-util-http==0.52b1
99-
orjson==3.10.16
100-
overrides==7.7.0
101-
packaging==24.2
102-
pathspec==0.12.1
103-
platformdirs==4.3.7
104-
posthog==3.23.0
105-
propcache==0.3.1
106-
proto-plus==1.26.1
107-
protobuf==5.29.4
108-
psutil==7.0.0
109-
pyasn1==0.6.1
110-
pyasn1_modules==0.4.2
111-
pycparser==2.22
112-
pydantic==2.11.3
113-
pydantic-settings==2.8.1
114-
pydantic_core==2.33.1
115-
Pygments==2.19.1
116-
pylint==3.3.6
117-
pypdf==5.4.0
118-
PyPika==0.48.9
119-
pyproject_hooks==1.2.0
120-
python-dateutil==2.9.0.post0
121-
python-dotenv==1.1.0
122-
python-iso639==2025.2.18
123-
python-magic==0.4.27
124-
python-oxmsg==0.0.2
125-
PyYAML==6.0.2
126-
RapidFuzz==3.13.0
127-
referencing==0.36.2
128-
regex==2024.11.6
129-
requests==2.32.3
130-
requests-oauthlib==2.0.0
131-
requests-toolbelt==1.0.0
132-
rich==14.0.0
133-
rpds-py==0.24.0
134-
rsa==4.9
135-
shellingham==1.5.4
136-
six==1.17.0
137-
sniffio==1.3.1
138-
soupsieve==2.6
139-
SQLAlchemy==2.0.40
140-
starlette==0.45.3
141-
sympy==1.13.3
142-
tenacity==9.1.2
143-
tokenizers==0.21.1
144-
tomlkit==0.13.2
145-
tqdm==4.67.1
146-
typer==0.15.2
147-
typing-inspect==0.9.0
148-
typing-inspection==0.4.0
149-
typing_extensions==4.13.1
150-
unstructured==0.17.2
151-
unstructured-client==0.32.3
152-
urllib3==2.3.0
153-
uvicorn==0.34.0
154-
uvloop==0.21.0
155-
watchfiles==1.0.5
156-
webencodings==0.5.1
157-
websocket-client==1.8.0
158-
websockets==15.0.1
159-
wrapt==1.17.2
160-
yarl==1.19.0
161-
zipp==3.21.0
162-
zstandard==0.23.0

0 commit comments

Comments
 (0)