Skip to content

bozorgmehr/streamlit-web-explorer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Explorer

This is a lightweight app using the Web Research Retriever.

Setup

You only need to supply a few things.

In settings() function, supply:

  • 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).

To use st.secrets set enviorment variables in .streamlit/secrets.toml file.

Or, simply add environemnt variables and remove st.secrets:

import os
os.environ["GOOGLE_API_KEY"] = "YOUR_API_KEY"
os.environ["GOOGLE_CSE_ID"] = "YOUR_CSE_ID" 
os.environ["OPENAI_API_BASE"] = "https://api.openai.com/v1"
os.environ["OPENAI_API_KEY"] = "YOUR_API_KEY"

For GOOGLE_API_KEY , you could get it from this link.

For GOOGLE_CSE_ID , you could get it from this link

Run

streamlit run web_explorer.py

Example output: example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%