Mishra
commited on
Commit
•
7fcb075
1
Parent(s):
3beeaa9
requirements update
Browse files- app.py +0 -18
- requirements.txt +1 -171
app.py
CHANGED
@@ -153,24 +153,6 @@ query_engine.update_prompts(
|
|
153 |
)
|
154 |
|
155 |
|
156 |
-
# import ragas for evaluation
|
157 |
-
from ragas.metrics import (
|
158 |
-
faithfulness,
|
159 |
-
answer_relevancy,
|
160 |
-
context_precision,
|
161 |
-
context_recall,
|
162 |
-
)
|
163 |
-
from ragas.metrics.critique import harmfulness
|
164 |
-
from ragas.evaluation import evaluate
|
165 |
-
|
166 |
-
metrics = [
|
167 |
-
faithfulness,
|
168 |
-
answer_relevancy,
|
169 |
-
context_precision,
|
170 |
-
context_recall,
|
171 |
-
harmfulness,
|
172 |
-
]
|
173 |
-
|
174 |
tab1, tab2 = st.tabs(["Chatbot", "Evaluation Dashboard"])
|
175 |
|
176 |
# app = st.container()
|
|
|
153 |
)
|
154 |
|
155 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
tab1, tab2 = st.tabs(["Chatbot", "Evaluation Dashboard"])
|
157 |
|
158 |
# app = st.container()
|
requirements.txt
CHANGED
@@ -1,185 +1,15 @@
|
|
1 |
-
accelerate==0.29.3
|
2 |
-
aiohttp==3.9.5
|
3 |
-
aiosignal==1.3.1
|
4 |
-
altair==5.3.0
|
5 |
-
annotated-types==0.6.0
|
6 |
-
anyio== 4.3.0
|
7 |
-
asttokens==2.4.1
|
8 |
-
async-timeout==4.0.3
|
9 |
-
attrs==23.2.0
|
10 |
-
azure-core==1.30.1
|
11 |
-
azure-identity==1.16.0
|
12 |
-
beautifulsoup4==4.12.3
|
13 |
-
blinker==1.8.2
|
14 |
-
blis==0.7.11
|
15 |
-
cachetools==5.3.3
|
16 |
-
catalogue==2.0.10
|
17 |
-
certifi==2024.2.2
|
18 |
-
cffi==1.16.0
|
19 |
-
charset-normalizer==3.3.2
|
20 |
-
click==8.1.7
|
21 |
-
cloudpathlib==0.16.0
|
22 |
-
comm==0.2.2
|
23 |
-
confection==0.1.4
|
24 |
-
cryptography==42.0.7
|
25 |
-
cymem==2.0.8
|
26 |
-
dataclasses-json==0.6.4
|
27 |
-
debugpy==1.8.1
|
28 |
-
decorator==5.1.1
|
29 |
-
Deprecated==1.2.14
|
30 |
-
dirtyjson==1.0.8
|
31 |
-
diskcache==5.6.3
|
32 |
-
distro==1.9.0
|
33 |
-
docx2txt==0.8
|
34 |
-
exceptiongroup==1.2.1
|
35 |
-
executing==2.0.1
|
36 |
-
filelock==3.13.4
|
37 |
-
frozenlist==1.4.1
|
38 |
-
fsspec==2024.3.1
|
39 |
-
gitdb==4.0.11
|
40 |
-
GitPython==3.1.43
|
41 |
-
greenlet==3.0.3
|
42 |
-
h11==0.14.0
|
43 |
-
httpcore==1.0.5
|
44 |
-
httpx==0.27.0
|
45 |
-
huggingface-hub==0.20.3
|
46 |
-
idna==3.7
|
47 |
-
importlib_metadata==7.1.0
|
48 |
-
ipykernel==6.29.4
|
49 |
-
ipython==8.18.1
|
50 |
-
jedi==0.19.1
|
51 |
-
Jinja2==3.1.3
|
52 |
-
joblib==1.4.0
|
53 |
-
jsonpath-ng==1.6.1
|
54 |
-
jsonschema==4.22.0
|
55 |
-
jsonschema-specifications==2023.12.1
|
56 |
-
jupyter_client==8.6.1
|
57 |
-
jupyter_core==5.7.2
|
58 |
-
langcodes==3.4.0
|
59 |
-
language_data==1.2.0
|
60 |
-
llama_cpp_python==0.2.64
|
61 |
llama-index==0.10.37
|
62 |
llama-index-agent-openai==0.2.3
|
63 |
llama-index-cli==0.1.12
|
64 |
llama-index-core==0.10.37.post1
|
65 |
-
llama-index-embeddings-azure-openai==0.1.9
|
66 |
llama-index-embeddings-openai==0.1.8
|
67 |
-
llama-index-graph-stores-neo4j==0.1.4
|
68 |
-
llama-index-indices-managed-llama-cloud==0.1.5
|
69 |
-
llama-index-legacy==0.9.48
|
70 |
-
llama-index-llms-azure-openai==0.1.8
|
71 |
-
llama-index-llms-huggingface==0.1.4
|
72 |
-
llama-index-llms-llama-cpp==0.1.3
|
73 |
llama-index-llms-openai==0.1.20
|
74 |
llama-index-multi-modal-llms-openai==0.1.5
|
75 |
llama-index-program-openai==0.1.6
|
76 |
llama-index-question-gen-openai==0.1.3
|
77 |
llama-index-readers-file==0.1.19
|
78 |
-
llama-index-readers-llama-parse==0.1.4
|
79 |
llama-index-vector-stores-pinecone==0.1.7
|
80 |
-
llama-parse==0.4.1
|
81 |
-
llamaindex-py-client==0.1.18
|
82 |
-
marisa-trie==1.1.1
|
83 |
-
markdown-it-py==3.0.0
|
84 |
-
MarkupSafe==2.1.5
|
85 |
-
marshmallow==3.21.1
|
86 |
-
matplotlib-inline==0.1.7
|
87 |
-
mdurl==0.1.2
|
88 |
-
mpmath==1.3.0
|
89 |
-
msal==1.28.0
|
90 |
-
msal-extensions==1.1.0
|
91 |
-
multidict==6.0.5
|
92 |
-
murmurhash==1.0.10
|
93 |
-
mypy-extensions==1.0.0
|
94 |
-
neo4j==5.20.0
|
95 |
-
nest-asyncio==1.6.0
|
96 |
-
networkx==3.2.1
|
97 |
-
nltk==3.8.1
|
98 |
-
numpy==1.26.4
|
99 |
-
nvidia-cublas-cu12==12.1.3.1
|
100 |
-
nvidia-cuda-cupti-cu12==12.1.105
|
101 |
-
nvidia-cuda-nvrtc-cu12==12.1.105
|
102 |
-
nvidia-cuda-runtime-cu12==12.1.105
|
103 |
-
nvidia-cudnn-cu12==8.9.2.26
|
104 |
-
nvidia-cufft-cu12==11.0.2.54
|
105 |
-
nvidia-curand-cu12==10.3.2.106
|
106 |
-
nvidia-cusolver-cu12==11.4.5.107
|
107 |
-
nvidia-cusparse-cu12==12.1.0.106
|
108 |
-
nvidia-nccl-cu12==2.20.5
|
109 |
-
nvidia-nvjitlink-cu12==12.4.127
|
110 |
-
nvidia-nvtx-cu12==12.1.105
|
111 |
openai==1.23.4
|
112 |
-
packaging==24.0
|
113 |
pandas==2.2.2
|
114 |
-
parso==0.8.4
|
115 |
-
pexpect==4.9.0
|
116 |
-
pillow==10.3.0
|
117 |
pinecone==4.0.0
|
118 |
-
pinecone-client==3.2.2
|
119 |
-
pip==24.0
|
120 |
-
platformdirs==4.2.2
|
121 |
-
ply==3.11
|
122 |
-
portalocker==2.8.2
|
123 |
-
preshed==3.0.9
|
124 |
-
prompt-toolkit==3.0.43
|
125 |
-
protobuf==4.25.3
|
126 |
-
psutil==5.9.8
|
127 |
-
ptyprocess==0.7.0
|
128 |
-
pure-eval==0.2.2
|
129 |
-
pyarrow==16.1.0
|
130 |
-
pycparser==2.22
|
131 |
-
pydantic==2.7.1
|
132 |
-
pydantic_core==2.18.2
|
133 |
-
pydeck==0.9.1
|
134 |
-
Pygments==2.18.0
|
135 |
-
PyJWT==2.8.0
|
136 |
-
pypdf==4.2.0
|
137 |
-
python-dateutil==2.9.0.post0
|
138 |
-
pytz==2024.1
|
139 |
-
PyYAML==6.0.1
|
140 |
-
pyzmq==26.0.3
|
141 |
-
referencing==0.35.1
|
142 |
-
regex==2024.4.16
|
143 |
-
requests==2.31.0
|
144 |
-
rich==13.7.1
|
145 |
-
rpds-py==0.18.1
|
146 |
-
safetensors==0.4.3
|
147 |
-
setuptools==44.0.0
|
148 |
-
six==1.16.0
|
149 |
-
smart-open==6.4.0
|
150 |
-
smmap==5.0.1
|
151 |
-
sniffio==1.3.1
|
152 |
-
soupsieve==2.5
|
153 |
-
spacy==3.7.4
|
154 |
-
spacy-legacy==3.0.12
|
155 |
-
spacy-loggers==1.0.5
|
156 |
-
SQLAlchemy==2.0.29
|
157 |
-
srsly==2.4.8
|
158 |
-
stack-data==0.6.3
|
159 |
-
streamlit==1.34.0
|
160 |
-
striprtf==0.0.26
|
161 |
-
sympy== 1.12
|
162 |
-
tenacity==8.2.3
|
163 |
-
thinc==8.2.3
|
164 |
-
tiktoken==0.6.0
|
165 |
-
tokenizers==0.19.1
|
166 |
-
toml==0.10.2
|
167 |
-
toolz==0.12.1
|
168 |
-
torch==2.3.0
|
169 |
-
tornado==6.4
|
170 |
-
tqdm==4.66.2
|
171 |
-
traitlets==5.14.3
|
172 |
-
transformers==4.40.1
|
173 |
-
triton==2.3.0
|
174 |
-
typer==0.9.4
|
175 |
-
typing_extensions==4.11.0
|
176 |
-
typing-inspect==0.9.0
|
177 |
-
tzdata==2024.1
|
178 |
-
urllib3==2.2.1
|
179 |
-
wasabi==1.1.2
|
180 |
-
watchdog==4.0.0
|
181 |
-
wcwidth==0.2.13
|
182 |
-
weasel==0.3.4
|
183 |
-
wrapt==1.16.0
|
184 |
-
yarl==1.9.4
|
185 |
-
zipp==3.18.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
llama-index==0.10.37
|
2 |
llama-index-agent-openai==0.2.3
|
3 |
llama-index-cli==0.1.12
|
4 |
llama-index-core==0.10.37.post1
|
|
|
5 |
llama-index-embeddings-openai==0.1.8
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
llama-index-llms-openai==0.1.20
|
7 |
llama-index-multi-modal-llms-openai==0.1.5
|
8 |
llama-index-program-openai==0.1.6
|
9 |
llama-index-question-gen-openai==0.1.3
|
10 |
llama-index-readers-file==0.1.19
|
|
|
11 |
llama-index-vector-stores-pinecone==0.1.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
openai==1.23.4
|
|
|
13 |
pandas==2.2.2
|
|
|
|
|
|
|
14 |
pinecone==4.0.0
|
15 |
+
pinecone-client==3.2.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|