{"id":14065012,"url":"https://github.com/langchain-ai/web-explorer","last_synced_at":"2025-04-05T15:06:19.579Z","repository":{"id":183859412,"uuid":"670314310","full_name":"langchain-ai/web-explorer","owner":"langchain-ai","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-09T23:06:57.000Z","size":658,"stargazers_count":385,"open_issues_count":7,"forks_count":87,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-03-29T14:06:46.075Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/langchain-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-24T19:14:26.000Z","updated_at":"2025-03-22T05:59:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6b342c0-1f79-48a3-97b8-d8f93039c594","html_url":"https://github.com/langchain-ai/web-explorer","commit_stats":null,"previous_names":["langchain-ai/web-explorer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Fweb-explorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Fweb-explorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Fweb-explorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/langchain-ai%2Fweb-explorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/langchain-ai","download_url":"https://codeload.github.com/langchain-ai/web-explorer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353745,"owners_count":20925329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T07:04:14.262Z","updated_at":"2025-04-05T15:06:19.545Z","avatar_url":"https://github.com/langchain-ai.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Web Explorer\n\nThis is a lightweight app using the [Web Research Retriever](https://github.com/langchain-ai/langchain/pull/8102).\n\n## Setup\nYou only need to supply a few things.\n\nIn `settings()` function, supply:\n\n* Search: Select the search tool you want to use (e.g., GoogleSearchAPIWrapper). \n* Vectorstore: Select the vectorstore and embeddings you want to use (e.g., Chroma, OpenAIEmbeddings).\n* Select the LLM you want to use (e.g., ChatOpenAI).\n\nTo use `st.secrets` set enviorment variables in `.streamlit/secrets.toml` file.\n \nOr, simply add environemnt variables and remove `st.secrets`: \n```\nimport os\nos.environ[\"GOOGLE_API_KEY\"] = \"YOUR_API_KEY\"\nos.environ[\"GOOGLE_CSE_ID\"] = \"YOUR_CSE_ID\" \nos.environ[\"OPENAI_API_BASE\"] = \"https://api.openai.com/v1\"\nos.environ[\"OPENAI_API_KEY\"] = \"YOUR_API_KEY\"\n\n```\n\nFor `GOOGLE_API_KEY` , you could get it from [this link](https://console.cloud.google.com/apis/api/customsearch.googleapis.com/credentials).\n\nFor `GOOGLE_CSE_ID` , you could get it from [this link](https://programmablesearchengine.google.com/)\n\n## Run\n```\nstreamlit run web_explorer.py\n```\n\nExample output:\n![example](https://github.com/langchain-ai/web-explorer/assets/122662504/f1383640-d089-492d-8757-ad743d34535f)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangchain-ai%2Fweb-explorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flangchain-ai%2Fweb-explorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flangchain-ai%2Fweb-explorer/lists"}