diff --git a/README.md b/README.md index 04219f9..7f411a2 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..94b70a1 --- /dev/null +++ b/requirements.txt @@ -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 \ No newline at end of file diff --git a/web_explorer.py b/web_explorer.py index d3d51fb..6345e71 100644 --- a/web_explorer.py +++ b/web_explorer.py @@ -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