initial commit
Browse files- Dockerfile.txt +11 -0
- app.py +26 -0
- requirements.txt +99 -0
Dockerfile.txt
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
RUN useradd -m -u 1000 user
|
3 |
+
USER user
|
4 |
+
ENV HOME=/home/user \
|
5 |
+
PATH=/home/user/.local/bin:$PATH
|
6 |
+
WORKDIR $HOME/app
|
7 |
+
COPY --chown=user . $HOME/app
|
8 |
+
COPY ./requirements.txt ~/app/requirements.txt
|
9 |
+
RUN pip install -r requirements.txt
|
10 |
+
COPY . .
|
11 |
+
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
app.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
### Import Section ###
|
2 |
+
"""
|
3 |
+
IMPORTS HERE
|
4 |
+
"""
|
5 |
+
|
6 |
+
### Global Section ###
|
7 |
+
"""
|
8 |
+
GLOBAL CODE HERE
|
9 |
+
"""
|
10 |
+
|
11 |
+
### On Chat Start (Session Start) Section ###
|
12 |
+
@cl.on_chat_start
|
13 |
+
async def on_chat_start():
|
14 |
+
""" SESSION SPECIFIC CODE HERE """
|
15 |
+
|
16 |
+
### Rename Chains ###
|
17 |
+
@cl.author_rename
|
18 |
+
def rename(orig_author: str):
|
19 |
+
""" RENAME CODE HERE """
|
20 |
+
|
21 |
+
### On Message Section ###
|
22 |
+
@cl.on_message
|
23 |
+
async def main(message: cl.Message):
|
24 |
+
"""
|
25 |
+
MESSAGE CODE HERE
|
26 |
+
"""
|
requirements.txt
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
aiofiles==23.2.1
|
2 |
+
aiohappyeyeballs==2.4.3
|
3 |
+
aiohttp==3.10.8
|
4 |
+
aiosignal==1.3.1
|
5 |
+
annotated-types==0.7.0
|
6 |
+
anyio==3.7.1
|
7 |
+
async-timeout==4.0.3
|
8 |
+
asyncer==0.0.2
|
9 |
+
attrs==24.2.0
|
10 |
+
bidict==0.23.1
|
11 |
+
certifi==2024.8.30
|
12 |
+
chainlit==0.7.700
|
13 |
+
charset-normalizer==3.3.2
|
14 |
+
click==8.1.7
|
15 |
+
dataclasses-json==0.5.14
|
16 |
+
Deprecated==1.2.14
|
17 |
+
distro==1.9.0
|
18 |
+
exceptiongroup==1.2.2
|
19 |
+
fastapi==0.100.1
|
20 |
+
fastapi-socketio==0.0.10
|
21 |
+
filetype==1.2.0
|
22 |
+
frozenlist==1.4.1
|
23 |
+
googleapis-common-protos==1.65.0
|
24 |
+
greenlet==3.1.1
|
25 |
+
grpcio==1.66.2
|
26 |
+
grpcio-tools==1.62.3
|
27 |
+
h11==0.14.0
|
28 |
+
h2==4.1.0
|
29 |
+
hpack==4.0.0
|
30 |
+
httpcore==0.17.3
|
31 |
+
httpx==0.24.1
|
32 |
+
hyperframe==6.0.1
|
33 |
+
idna==3.10
|
34 |
+
importlib_metadata==8.4.0
|
35 |
+
jiter==0.5.0
|
36 |
+
jsonpatch==1.33
|
37 |
+
jsonpointer==3.0.0
|
38 |
+
langchain==0.3.0
|
39 |
+
langchain-community==0.3.0
|
40 |
+
langchain-core==0.3.1
|
41 |
+
langchain-openai==0.2.0
|
42 |
+
langchain-qdrant==0.1.4
|
43 |
+
langchain-text-splitters==0.3.0
|
44 |
+
langsmith==0.1.121
|
45 |
+
Lazify==0.4.0
|
46 |
+
marshmallow==3.22.0
|
47 |
+
multidict==6.1.0
|
48 |
+
mypy-extensions==1.0.0
|
49 |
+
nest-asyncio==1.6.0
|
50 |
+
numpy==1.26.4
|
51 |
+
openai==1.51.0
|
52 |
+
opentelemetry-api==1.27.0
|
53 |
+
opentelemetry-exporter-otlp==1.27.0
|
54 |
+
opentelemetry-exporter-otlp-proto-common==1.27.0
|
55 |
+
opentelemetry-exporter-otlp-proto-grpc==1.27.0
|
56 |
+
opentelemetry-exporter-otlp-proto-http==1.27.0
|
57 |
+
opentelemetry-instrumentation==0.48b0
|
58 |
+
opentelemetry-proto==1.27.0
|
59 |
+
opentelemetry-sdk==1.27.0
|
60 |
+
opentelemetry-semantic-conventions==0.48b0
|
61 |
+
orjson==3.10.7
|
62 |
+
packaging==23.2
|
63 |
+
portalocker==2.10.1
|
64 |
+
protobuf==4.25.5
|
65 |
+
pydantic==2.9.2
|
66 |
+
pydantic-settings==2.5.2
|
67 |
+
pydantic_core==2.23.4
|
68 |
+
PyJWT==2.9.0
|
69 |
+
PyMuPDF==1.24.10
|
70 |
+
PyMuPDFb==1.24.10
|
71 |
+
python-dotenv==1.0.1
|
72 |
+
python-engineio==4.9.1
|
73 |
+
python-graphql-client==0.4.3
|
74 |
+
python-multipart==0.0.6
|
75 |
+
python-socketio==5.11.4
|
76 |
+
PyYAML==6.0.2
|
77 |
+
qdrant-client==1.11.2
|
78 |
+
regex==2024.9.11
|
79 |
+
requests==2.32.3
|
80 |
+
simple-websocket==1.0.0
|
81 |
+
sniffio==1.3.1
|
82 |
+
SQLAlchemy==2.0.35
|
83 |
+
starlette==0.27.0
|
84 |
+
syncer==2.0.3
|
85 |
+
tenacity==8.5.0
|
86 |
+
tiktoken==0.7.0
|
87 |
+
tomli==2.0.1
|
88 |
+
tqdm==4.66.5
|
89 |
+
typing-inspect==0.9.0
|
90 |
+
typing_extensions==4.12.2
|
91 |
+
uptrace==1.26.0
|
92 |
+
urllib3==2.2.3
|
93 |
+
uvicorn==0.23.2
|
94 |
+
watchfiles==0.20.0
|
95 |
+
websockets==13.1
|
96 |
+
wrapt==1.16.0
|
97 |
+
wsproto==1.2.0
|
98 |
+
yarl==1.13.1
|
99 |
+
zipp==3.20.2
|