Skip to content

Commit

Permalink
Add requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
rlancemartin committed Jul 26, 2023
1 parent 8eda760 commit 9b23f8c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ You only need to supply a few things.

In `settings()` function, supply:

* Search: Select the search tool you want to use (e.g., GoogleSearchAPIWrapper).
* Search: Select the search tool you want to use (e.g., GoogleSearchAPIWrapper).
* Vectorstore: Select the vectorstore and embeddings you want to use (e.g., Chroma, OpenAIEmbeddings).
* Select the LLM you want to use (e.g., ChatOpenAI).

Ensure that the API keys required for your tools of interest are specified.
Set all API keys, e.g.:

export GOOGLE_API_KEY=xxx
export GOOGLE_CSE_ID=xxx
export OPENAI_API_KEY=xxx

Run:

Expand Down
10 changes: 10 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
streamlit==1.25.0
langchain==0.0.243
chromadb==0.4.2
openai==0.27.8
google-api-core==2.11.1
google-api-python-client==2.70.0
google-auth==2.20.0
google-auth-httplib2==0.1.0
google-search-results==2.4.2
googleapis-common-protos==1.59.1
2 changes: 0 additions & 2 deletions web_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ def settings():

# Search
from langchain.utilities import GoogleSearchAPIWrapper
os.environ["GOOGLE_CSE_ID"] = "xxx"
os.environ["GOOGLE_API_KEY"] = "xxx"
search = GoogleSearchAPIWrapper()

# Initialize
Expand Down

0 comments on commit 9b23f8c

Please sign in to comment.