Jorge Londoño commited on
Commit
1df5013
·
1 Parent(s): 3026b25

Tested on linux environment

Browse files
Files changed (6) hide show
  1. .gitignore +1 -0
  2. app02-chatRagLcel.py +4 -0
  3. app03-chatRagLcelMem.py +4 -0
  4. modules.md +6 -3
  5. requirements.txt +151 -150
  6. test.py +6 -0
.gitignore CHANGED
@@ -1,3 +1,4 @@
1
  .env
2
  .venv
3
  flagged
 
 
1
  .env
2
  .venv
3
  flagged
4
+ __pycache__
app02-chatRagLcel.py CHANGED
@@ -25,6 +25,10 @@ from langchain_groq import ChatGroq
25
  from pinecone import Pinecone, ServerlessSpec
26
  from langchain_pinecone import PineconeVectorStore
27
 
 
 
 
 
28
 
29
  setid = "global"
30
 
 
25
  from pinecone import Pinecone, ServerlessSpec
26
  from langchain_pinecone import PineconeVectorStore
27
 
28
+ from dotenv import load_dotenv
29
+ load_dotenv()
30
+ # print('EMBEDDINGS_MODEL', os.getenv("EMBEDDINGS_MODEL"))
31
+
32
 
33
  setid = "global"
34
 
app03-chatRagLcelMem.py CHANGED
@@ -25,6 +25,10 @@ from langchain_groq import ChatGroq
25
  from pinecone import Pinecone, ServerlessSpec
26
  from langchain_pinecone import PineconeVectorStore
27
 
 
 
 
 
28
 
29
  setid = "global"
30
 
 
25
  from pinecone import Pinecone, ServerlessSpec
26
  from langchain_pinecone import PineconeVectorStore
27
 
28
+ from dotenv import load_dotenv
29
+ load_dotenv()
30
+ # print('EMBEDDINGS_MODEL', os.getenv("EMBEDDINGS_MODEL"))
31
+
32
 
33
  setid = "global"
34
 
modules.md CHANGED
@@ -1,5 +1,9 @@
1
  ```sh
2
 
 
 
 
 
3
  pip install ipykernel IProgress ipywidgets --upgrade
4
 
5
  pip install \
@@ -10,9 +14,8 @@ pip install \
10
  langchain-pinecone \
11
  huggingface_hub
12
 
13
- # Groq API
14
- pip install langchain_groq
15
- pip install langsmith
16
 
17
 
18
 
 
1
  ```sh
2
 
3
+ python3.11 -m venv .venv
4
+ source .venv/bin/activate
5
+ python -m pip install pip setuptools wheel --upgrade
6
+
7
  pip install ipykernel IProgress ipywidgets --upgrade
8
 
9
  pip install \
 
14
  langchain-pinecone \
15
  huggingface_hub
16
 
17
+ pip install langchain_groq # Groq API
18
+ pip install langsmith # LangSmith
 
19
 
20
 
21
 
requirements.txt CHANGED
@@ -1,158 +1,159 @@
1
- aiofiles==23.2.1
2
- aiohttp==3.9.3
3
- aiosignal==1.3.1
4
- altair==5.2.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
- cachetools==5.3.2
11
- certifi==2024.2.2
12
- charset-normalizer==3.3.2
13
- click==8.1.7
14
- colorama==0.4.6
15
- comm==0.2.1
16
- contourpy==1.2.0
17
- cycler==0.12.1
18
- dataclasses-json==0.6.4
19
- debugpy==1.8.1
 
 
 
 
 
 
 
 
 
20
  decorator==5.1.1
21
- distro==1.9.0
22
- exceptiongroup==1.2.0
23
- executing==2.0.1
24
- fastapi==0.109.2
25
- ffmpy==0.3.2
26
- filelock==3.13.1
27
- fonttools==4.49.0
28
- frozenlist==1.4.1
29
- fsspec==2024.2.0
30
- google-ai-generativelanguage==0.4.0
31
- google-api-core==2.17.1
32
- google-auth==2.28.1
33
- google-generativeai==0.3.2
34
- googleapis-common-protos==1.62.0
35
- gradio==4.19.2
36
- gradio_client==0.10.1
37
- greenlet==3.0.3
38
- groq==0.4.1
39
- grpcio==1.62.0
40
- grpcio-status==1.62.0
41
- h11==0.14.0
42
- httpcore==1.0.4
43
- httpx==0.27.0
44
- huggingface-hub==0.20.3
45
- idna==3.6
46
- importlib-resources==6.1.1
47
- IProgress==0.4
48
- ipykernel==6.29.2
49
- ipython==8.22.1
50
- ipywidgets==8.1.2
51
- jedi==0.19.1
52
- Jinja2==3.1.3
53
- joblib==1.3.2
54
- jsonpatch==1.33
55
- jsonpointer==2.4
56
- jsonschema==4.21.1
57
- jsonschema-specifications==2023.12.1
58
- jupyter_client==8.6.0
59
- jupyter_core==5.7.1
60
- jupyterlab_widgets==3.0.10
61
- kiwisolver==1.4.5
62
- langchain==0.1.9
63
- langchain-community==0.0.24
64
- langchain-core==0.1.26
65
- langchain-google-genai==0.0.9
66
- langchain-groq==0.0.1
67
- langchain-pinecone==0.0.3
68
- langsmith==0.1.7
69
- markdown-it-py==3.0.0
70
- MarkupSafe==2.1.5
71
- marshmallow==3.20.2
72
- matplotlib==3.8.3
73
  matplotlib-inline==0.1.6
74
- mdurl==0.1.2
75
- mpmath==1.3.0
76
- multidict==6.0.5
77
- mypy-extensions==1.0.0
78
- nest-asyncio==1.6.0
79
- networkx==3.2.1
80
- numpy==1.26.4
81
- nvidia-cublas-cu12==12.1.3.1
82
- nvidia-cuda-cupti-cu12==12.1.105
83
- nvidia-cuda-nvrtc-cu12==12.1.105
84
- nvidia-cuda-runtime-cu12==12.1.105
85
- nvidia-cudnn-cu12==8.9.2.26
86
- nvidia-cufft-cu12==11.0.2.54
87
- nvidia-curand-cu12==10.3.2.106
88
- nvidia-cusolver-cu12==11.4.5.107
89
- nvidia-cusparse-cu12==12.1.0.106
90
- nvidia-nccl-cu12==2.19.3
91
- nvidia-nvjitlink-cu12==12.3.101
92
- nvidia-nvtx-cu12==12.1.105
93
- orjson==3.9.15
94
- packaging==23.2
95
- pandas==2.2.1
96
  parso==0.8.3
97
- pexpect==4.9.0
98
- pillow==10.2.0
99
- pinecone-client==3.1.0
100
- platformdirs==4.2.0
101
- prompt-toolkit==3.0.43
102
- proto-plus==1.23.0
103
- protobuf==4.25.3
104
- psutil==5.9.8
105
  ptyprocess==0.7.0
106
  pure-eval==0.2.2
107
- pyasn1==0.5.1
108
- pyasn1-modules==0.3.0
109
- pydantic==2.6.2
110
- pydantic_core==2.16.3
111
- pydub==0.25.1
112
- Pygments==2.17.2
113
- pyparsing==3.1.1
 
 
 
 
 
 
 
 
 
 
 
 
114
  python-dateutil==2.8.2
115
- python-multipart==0.0.9
116
- pytz==2024.1
117
- PyYAML==6.0.1
118
- pyzmq==25.1.2
119
- referencing==0.33.0
120
- regex==2023.12.25
121
- requests==2.31.0
122
- rich==13.7.0
123
- rpds-py==0.18.0
124
- rsa==4.9
125
- ruff==0.2.2
126
- safetensors==0.4.2
127
- scikit-learn==1.4.1.post1
128
- scipy==1.12.0
129
- semantic-version==2.10.0
130
- sentence-transformers==2.4.0
131
- shellingham==1.5.4
 
132
  six==1.16.0
133
- sniffio==1.3.0
134
- SQLAlchemy==2.0.27
135
- stack-data==0.6.3
136
- starlette==0.36.3
137
- sympy==1.12
138
- tenacity==8.2.3
139
- threadpoolctl==3.3.0
140
- tokenizers==0.15.2
141
- tomlkit==0.12.0
142
- toolz==0.12.1
143
- torch==2.2.1
144
- tornado==6.4
145
- tqdm==4.66.2
146
- traitlets==5.14.1
147
- transformers==4.38.1
148
- triton==2.2.0
149
- typer==0.9.0
150
- typing-inspect==0.9.0
151
  typing_extensions==4.9.0
152
- tzdata==2024.1
153
- urllib3==2.2.1
154
- uvicorn==0.27.1
155
- wcwidth==0.2.13
156
- websockets==11.0.3
157
- widgetsnbextension==4.0.10
158
- yarl==1.9.4
 
 
 
 
 
 
 
 
 
1
+ algs4==1.0.3
2
+ appdirs==1.4.4
3
+ apt-clone==0.2.1
4
+ apturl==0.5.2
5
+ asttokens==2.2.1
6
+ async-timeout==4.0.1
7
+ attrs==22.1.0
8
+ backcall==0.2.0
9
+ beautifulsoup4==4.12.0
10
+ blinker==1.4
11
+ Brlapi==0.8.3
12
+ Brotli==1.0.9
13
+ certifi==2020.6.20
14
+ chardet==4.0.0
15
+ charset-normalizer==3.1.0
16
+ click==8.0.3
17
+ colorama==0.4.4
18
+ comm==0.1.3
19
+ command-not-found==0.3
20
+ configobj==5.0.6
21
+ contourpy==1.0.7
22
+ cramjam==2.6.2
23
+ crudini==0.9.3
24
+ cryptography==3.4.8
25
+ cupshelpers==1.0
26
+ cycler==0.11.0
27
+ dbus-python==1.2.18
28
+ debugpy==1.6.6
29
  decorator==5.1.1
30
+ defer==1.0.6
31
+ diskcache==5.6.3
32
+ distro==1.7.0
33
+ dnspython==2.3.0
34
+ entrypoints==0.4
35
+ exceptiongroup==1.0.0
36
+ executing==1.2.0
37
+ eyeD3==0.8.10
38
+ fastparquet==2023.4.0
39
+ filelock==3.6.0
40
+ fonttools==4.39.3
41
+ frozendict==2.3.6
42
+ fsspec==2023.5.0
43
+ gpg==1.16.0
44
+ grpcio==1.30.2
45
+ html5lib==1.1
46
+ httplib2==0.20.2
47
+ idna==3.3
48
+ ifaddr==0.1.7
49
+ IMDbPY==2021.4.18
50
+ importlib-metadata==4.6.4
51
+ iniconfig==1.1.1
52
+ iniparse==0.4
53
+ introcs==1.0
54
+ ipykernel==6.22.0
55
+ ipython==8.11.0
56
+ jedi==0.18.2
57
+ jeepney==0.7.1
58
+ jupyter_client==8.1.0
59
+ jupyter_core==5.3.0
60
+ keyring==23.5.0
61
+ kiwisolver==1.4.4
62
+ launchpadlib==1.10.16
63
+ lazr.restfulclient==0.14.4
64
+ lazr.uri==1.0.6
65
+ llama_cpp_python==0.2.23
66
+ louis==3.20.0
67
+ lxml==4.9.2
68
+ macaroonbakery==1.3.1
69
+ Mako==1.1.3
70
+ MarkupSafe==2.0.1
71
+ matplotlib==3.7.1
 
 
 
 
 
 
 
 
 
 
72
  matplotlib-inline==0.1.6
73
+ more-itertools==8.10.0
74
+ multitasking==0.0.11
75
+ mutagen==1.45.1
76
+ nemo-emblems==6.0.1
77
+ nest-asyncio==1.5.6
78
+ netaddr==0.8.0
79
+ netifaces==0.11.0
80
+ numpy==1.26.2
81
+ oauthlib==3.2.0
82
+ onboard==1.4.1
83
+ packaging==21.3
84
+ PAM==0.4.2
85
+ pandas==1.5.3
 
 
 
 
 
 
 
 
 
86
  parso==0.8.3
87
+ pexpect==4.8.0
88
+ pickleshare==0.7.5
89
+ Pillow==9.0.1
90
+ platformdirs==3.2.0
91
+ pluggy==1.0.0
92
+ prompt-toolkit==3.0.38
93
+ protobuf==3.12.4
94
+ psutil==5.9.0
95
  ptyprocess==0.7.0
96
  pure-eval==0.2.2
97
+ pyarrow==12.0.0
98
+ pycairo==1.20.1
99
+ pycryptodomex==3.11.0
100
+ pycups==2.0.1
101
+ pycurl==7.44.1
102
+ pyelftools==0.27
103
+ pygame==2.1.3
104
+ Pygments==2.14.0
105
+ PyGObject==3.42.1
106
+ PyICU==2.8.1
107
+ pyinotify==0.9.6
108
+ PyJWT==2.3.0
109
+ pymacaroons==0.13.0
110
+ PyNaCl==1.5.0
111
+ pyparsing==2.4.7
112
+ pyparted==3.11.7
113
+ pyRFC3339==1.1
114
+ pytest==7.2.0
115
+ python-apt==2.4.0+ubuntu3
116
  python-dateutil==2.8.2
117
+ python-debian==0.1.43+ubuntu1.1
118
+ python-gnupg==0.4.8
119
+ python-magic==0.4.24
120
+ python-xlib==0.29
121
+ pytz==2023.3
122
+ pyxattr==0.7.2
123
+ pyxdg==0.27
124
+ PyYAML==5.4.1
125
+ pyzmq==25.0.2
126
+ qrcode==7.3.1
127
+ reportlab==3.6.8
128
+ requests==2.28.2
129
+ requests-file==1.5.1
130
+ requests-unixsocket==0.2.0
131
+ screen-resolution-extra==0.0.0
132
+ SecretStorage==3.3.1
133
+ setproctitle==1.2.2
134
+ simplejson==3.17.6
135
  six==1.16.0
136
+ soupsieve==2.3.1
137
+ stack-data==0.6.2
138
+ systemd-python==234
139
+ tinycss2==1.1.1
140
+ tldextract==3.1.2
141
+ tomli==2.0.1
142
+ tornado==6.2
143
+ traitlets==5.9.0
 
 
 
 
 
 
 
 
 
 
144
  typing_extensions==4.9.0
145
+ ubuntu-drivers-common==0.0.0
146
+ ufw==0.36.1
147
+ Unidecode==1.3.3
148
+ urllib3==1.26.5
149
+ vboxapi==1.0
150
+ wadllib==1.3.6
151
+ wcwidth==0.2.6
152
+ webencodings==0.5.1
153
+ websockets==9.1
154
+ xdg==5
155
+ xkit==0.0.0
156
+ xlrd==1.2.0
157
+ yfinance==0.2.14
158
+ yt-dlp==2022.4.8
159
+ zipp==1.0.0
test.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import os
2
+ import gradio as gr
3
+ from dotenv import load_dotenv
4
+
5
+ load_dotenv()
6
+ print('EMBEDDINGS_MODEL', os.getenv("EMBEDDINGS_MODEL"))