You can use semantic search, conversational models, and AI agents in your LangChain projects with just one package. π To start, create an account and get your API key:
Features
- π One Package Setup β
pip install langchain-aisearchapiand youβre ready - π€ LLM Interface β Use AI Search API as a LangChain LLM
- π¬ Chat Model β Build conversational agents with memory
- π οΈ Tools for Agents β Add AI Search directly into LangChain workflows
- π Prebuilt Chains β Research, Q&A, fact-checking out of the box
Installation
Install from PyPI:Quick Start
1. Basic LLM Usage
2. Conversational Chat
3. AI Search as a Tool in Agents
4. Research Assistant
Components
| Component | Description | Use Case |
|---|---|---|
AISearchLLM | AI Search API as an LLM | Completions, text generation |
AISearchChat | Chat model with context | Conversational AI, assistants |
AISearchTool | Search as LangChain tool | Agents, workflows |
create_research_chain() | Ready-made research chain | Research and reporting |
Troubleshooting
- β No API key? β Sign up or log in.
- π Key issues? β Check your dashboard.
- β³ Rate limited? β Use retry logic (e.g. with
tenacity).

