Skip to content
프로젝트

소개

웹 조사 에이전트, 요약, 뉴스 다이제스트, 문서와의 채팅이라는 네 가지 LangChain 도구를 제공하는 Streamlit 앱입니다. OpenAI, pgvector와 원하는 검색 API를 사용합니다.

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+1
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

langchain-examples

Released under the MIT license. GitHub Stars GitHub Forks GitHub Watchers Follow on Twitter

A single Streamlit app with four practical LangChain tools, using OpenAI models, your choice of web search provider, and Postgres with pgvector (or Pinecone) for document storage.

Tool What it does
🔎 Web Research An agent that searches the web, reads pages and answers with cited sources.
📝 Summarize Summarizes pasted text, a web page or a PDF, as a short summary, a detailed one or bullet points.
📰 News Digest Finds top stories on any topic, summarizes each, and writes a one-paragraph digest.
📚 Chat with Docs Stores PDF, text and Markdown files in a vector store (Postgres with pgvector, or Pinecone) and answers questions with page-level citations.

Deploy

Vector store Railway template
Postgres with pgvector (default) Deploy on Railway
Pinecone Deploy on Railway

The pgvector template deploys the app and a Postgres database. The Pinecone template deploys only the app and creates a serverless index in your Pinecone project on first use. Add your OpenAI key and at least one search provider key, and you're ready. It also runs on any VPS with Docker, such as a DigitalOcean droplet.

Configuration

Variable Required Description
VECTOR_STORE No pgvector (default) or pinecone.
DATABASE_URL pgvector only Postgres connection string. The pgvector extension and documents table are created on first use.
PINECONE_API_KEY Pinecone only Pinecone API key. Can also be entered in the sidebar.
PINECONE_INDEX No Pinecone index name, default langchain-examples. If it doesn't exist, a serverless index (1536 dimensions, cosine, AWS us-east-1) is created.
OPENAI_API_KEY Yes OpenAI API key.
OPENAI_MODEL No Default model, e.g. gpt-6.1-terra. Users can switch models in the sidebar.
OPENAI_BASE_URL No An OpenAI-compatible endpoint, if you don't call OpenAI directly.
APP_PASSWORD No Password required to open the app. See the note below.
TAVILY_API_KEY No Tavily
EXA_API_KEY No Exa
FIRECRAWL_API_KEY No Firecrawl
PARALLEL_API_KEY No Parallel
PERPLEXITY_API_KEY No Perplexity
TINYFISH_API_KEY No TinyFish
SERPER_API_KEY No Serper
SERPAPI_API_KEY No SerpApi

Any key not set on the server can be entered in the sidebar instead. Keys entered there last only for that browser session and are never stored.

[!IMPORTANT] Set APP_PASSWORD if you put API keys on the server. Without it, anyone who finds your app's URL can use your keys and spend your credits, and can read or delete documents in your library. If you leave the server keys empty and enter them in the sidebar instead, the app is safe to leave open.

Run locally

docker run -d --name pgvector -e POSTGRES_PASSWORD=postgres -p 5432:5432 pgvector/pgvector:pg18
pip install -r requirements.txt
export DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres
export OPENAI_API_KEY=...
streamlit run app.py

Older examples

The earlier standalone apps (Chroma, Pinecone, Gemini, Helicone, SerpApi and others) are preserved on the legacy branch. They are no longer maintained.

관련 프로젝트 살펴보기

불러오는 중…