langchain-aisearchapi


Namelangchain-aisearchapi JSON
Version 1.0.5 PyPI version JSON
download
home_pageNone
SummaryLangChain integration for AI Search API (LLM, Chat, tools, and chains).
upload_time2025-08-30 20:18:17
maintainerNone
docs_urlNone
authorAI Search API Team
requires_python>=3.9
licenseMIT License Copyright (c) 2025 aisearchapi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords ai agents ai chatbot ai search api aisearchapi automation chat models contextual ai contextual search fact checking intelligent agents langchain langchain-extension langchain-integration langchain-tools large language models llm nlp python ai question answering research chain search api semantic search summarization api summary api web search api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 🚀 LangChain + AI Search API Integration

[![PyPI version](https://img.shields.io/pypi/v/langchain-aisearchapi.svg)](https://pypi.org/project/langchain-aisearchapi/)  
[![Python Support](https://img.shields.io/badge/Python-3.8%2B-blue.svg)](https://www.python.org/)  
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)

Official **LangChain integration** for the [AI Search API](https://aisearchapi.io?utm_source=pypi).  
Bring **semantic search**, **contextual answers**, **summarization**, and **intelligent agents** to your LangChain apps in minutes.

---

## ✨ Features

- 🔑 **One-Line Install** – `pip install langchain-aisearchapi`  
- 🤖 **LLM Interface** – Use AI Search API directly as a LangChain LLM  
- 💬 **Chat Model** – Build conversations with memory & context  
- 🛠️ **Agent Tools** – Add AI Search, Web Search, Summarization APIs as tools  
- 📚 **Prebuilt Chains** – Research, Q&A, fact-checking, and summaries out of the box  

---

## 🔑 Get Started

1. [🆕 Sign Up](https://app.aisearchapi.io/join?utm_source=pypi)  
2. [🔑 Log In](https://app.aisearchapi.io/login?utm_source=pypi)  
3. [📊 Dashboard](https://app.aisearchapi.io/dashboard?utm_source=pypi) → Copy your API key  

---

## ⚡ Installation

```bash
pip install langchain-aisearchapi
```

---

## 🚀 Quick Examples

### LLM Usage
```python
from langchain_aisearchapi import AISearchLLM

llm = AISearchLLM(api_key="your-key")
print(llm("Explain semantic search in simple terms"))
```

### Conversational Chat
```python
from langchain_aisearchapi import AISearchChat
from langchain.schema import HumanMessage

chat = AISearchChat(api_key="your-key")
messages = [
    HumanMessage(content="What is LangChain?"),
    HumanMessage(content="Why do developers use it?")
]
response = chat(messages)
print(response.content)
```

### Tool + Agent
```python
from langchain_aisearchapi import AISearchTool, AISearchLLM
from langchain.agents import initialize_agent, AgentType

tool = AISearchTool(api_key="your-key")
llm = AISearchLLM(api_key="your-key")

agent = initialize_agent(
    tools=[tool],
    llm=llm,
    agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
    verbose=True
)
print(agent.run("Find the latest SpaceX launch details"))
```

### Research Chain
```python
from langchain_aisearchapi import create_research_chain

research = create_research_chain(api_key="your-key")
print(research.run("Breakthroughs in AI search 2024"))
```

### Summarization
```python
from langchain_aisearchapi import AISearchLLM

llm = AISearchLLM(api_key="your-key")
summary = llm("Summarize this text: AI search connects context and meaning in queries.")
print(summary)
```

---

## 🛠️ Components

| Component | Description | Use Case |
|-----------|-------------|----------|
| **AISearchLLM** | AI Search API as an LLM | Completions, text generation |
| **AISearchChat** | Chat model with context | Assistants, multi-turn chats |
| **AISearchTool** | Search / Web Search API tool | Agents, workflows |
| **create_research_chain()** | Prebuilt chain | Research & reporting |
| **Summarization API** | Text summarization | Notes, abstracts |

📘 Docs: [AI Search API Documentation](https://docs.aisearchapi.io?utm_source=pypi)

---

## ❗ Troubleshooting

- **No API key?** → [Sign up](https://app.aisearchapi.io/join?utm_source=pypi)  
- **Issues with key?** → Check [Dashboard](https://app.aisearchapi.io/dashboard?utm_source=pypi)  
- **Rate limited?** → Add retries (e.g. with [tenacity](https://pypi.org/project/tenacity/))  

---

## 📚 Resources

- [🌐 Homepage](https://aisearchapi.io?utm_source=pypi)  
- [📘 Documentation](https://docs.aisearchapi.io?utm_source=pypi)  
- [📦 PyPI](https://pypi.org/project/langchain-aisearchapi/)  
- [📝 Blog](https://aisearchapi.io/blog/)  

---

## 🎉 Get Started Now

```bash
pip install langchain-aisearchapi
```

👉 [Join now](https://app.aisearchapi.io/join?utm_source=pypi) for a free API key and start building!

---

Made with ❤️ for LangChain developers using the AI Search API.

---

## 🔍 SEO Keywords

LangChain AI Search API integration, AI Search API Python package, semantic search LangChain, contextual AI LangChain, AI chatbot LangChain, summarization API LangChain, web search API LangChain, AI Search API key setup, summary API integration

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "langchain-aisearchapi",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "ai agents, ai chatbot, ai search api, aisearchapi, automation, chat models, contextual ai, contextual search, fact checking, intelligent agents, langchain, langchain-extension, langchain-integration, langchain-tools, large language models, llm, nlp, python ai, question answering, research chain, search api, semantic search, summarization api, summary api, web search api",
    "author": "AI Search API Team",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/e3/2f/0d99579ef8295b8fc26b1a8f7743a22d68acc71ca277d36681358295ad4f/langchain_aisearchapi-1.0.5.tar.gz",
    "platform": null,
    "description": "# \ud83d\ude80 LangChain + AI Search API Integration\n\n[![PyPI version](https://img.shields.io/pypi/v/langchain-aisearchapi.svg)](https://pypi.org/project/langchain-aisearchapi/)  \n[![Python Support](https://img.shields.io/badge/Python-3.8%2B-blue.svg)](https://www.python.org/)  \n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n\nOfficial **LangChain integration** for the [AI Search API](https://aisearchapi.io?utm_source=pypi).  \nBring **semantic search**, **contextual answers**, **summarization**, and **intelligent agents** to your LangChain apps in minutes.\n\n---\n\n## \u2728 Features\n\n- \ud83d\udd11 **One-Line Install** \u2013 `pip install langchain-aisearchapi`  \n- \ud83e\udd16 **LLM Interface** \u2013 Use AI Search API directly as a LangChain LLM  \n- \ud83d\udcac **Chat Model** \u2013 Build conversations with memory & context  \n- \ud83d\udee0\ufe0f **Agent Tools** \u2013 Add AI Search, Web Search, Summarization APIs as tools  \n- \ud83d\udcda **Prebuilt Chains** \u2013 Research, Q&A, fact-checking, and summaries out of the box  \n\n---\n\n## \ud83d\udd11 Get Started\n\n1. [\ud83c\udd95 Sign Up](https://app.aisearchapi.io/join?utm_source=pypi)  \n2. [\ud83d\udd11 Log In](https://app.aisearchapi.io/login?utm_source=pypi)  \n3. [\ud83d\udcca Dashboard](https://app.aisearchapi.io/dashboard?utm_source=pypi) \u2192 Copy your API key  \n\n---\n\n## \u26a1 Installation\n\n```bash\npip install langchain-aisearchapi\n```\n\n---\n\n## \ud83d\ude80 Quick Examples\n\n### LLM Usage\n```python\nfrom langchain_aisearchapi import AISearchLLM\n\nllm = AISearchLLM(api_key=\"your-key\")\nprint(llm(\"Explain semantic search in simple terms\"))\n```\n\n### Conversational Chat\n```python\nfrom langchain_aisearchapi import AISearchChat\nfrom langchain.schema import HumanMessage\n\nchat = AISearchChat(api_key=\"your-key\")\nmessages = [\n    HumanMessage(content=\"What is LangChain?\"),\n    HumanMessage(content=\"Why do developers use it?\")\n]\nresponse = chat(messages)\nprint(response.content)\n```\n\n### Tool + Agent\n```python\nfrom langchain_aisearchapi import AISearchTool, AISearchLLM\nfrom langchain.agents import initialize_agent, AgentType\n\ntool = AISearchTool(api_key=\"your-key\")\nllm = AISearchLLM(api_key=\"your-key\")\n\nagent = initialize_agent(\n    tools=[tool],\n    llm=llm,\n    agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,\n    verbose=True\n)\nprint(agent.run(\"Find the latest SpaceX launch details\"))\n```\n\n### Research Chain\n```python\nfrom langchain_aisearchapi import create_research_chain\n\nresearch = create_research_chain(api_key=\"your-key\")\nprint(research.run(\"Breakthroughs in AI search 2024\"))\n```\n\n### Summarization\n```python\nfrom langchain_aisearchapi import AISearchLLM\n\nllm = AISearchLLM(api_key=\"your-key\")\nsummary = llm(\"Summarize this text: AI search connects context and meaning in queries.\")\nprint(summary)\n```\n\n---\n\n## \ud83d\udee0\ufe0f Components\n\n| Component | Description | Use Case |\n|-----------|-------------|----------|\n| **AISearchLLM** | AI Search API as an LLM | Completions, text generation |\n| **AISearchChat** | Chat model with context | Assistants, multi-turn chats |\n| **AISearchTool** | Search / Web Search API tool | Agents, workflows |\n| **create_research_chain()** | Prebuilt chain | Research & reporting |\n| **Summarization API** | Text summarization | Notes, abstracts |\n\n\ud83d\udcd8 Docs: [AI Search API Documentation](https://docs.aisearchapi.io?utm_source=pypi)\n\n---\n\n## \u2757 Troubleshooting\n\n- **No API key?** \u2192 [Sign up](https://app.aisearchapi.io/join?utm_source=pypi)  \n- **Issues with key?** \u2192 Check [Dashboard](https://app.aisearchapi.io/dashboard?utm_source=pypi)  \n- **Rate limited?** \u2192 Add retries (e.g. with [tenacity](https://pypi.org/project/tenacity/))  \n\n---\n\n## \ud83d\udcda Resources\n\n- [\ud83c\udf10 Homepage](https://aisearchapi.io?utm_source=pypi)  \n- [\ud83d\udcd8 Documentation](https://docs.aisearchapi.io?utm_source=pypi)  \n- [\ud83d\udce6 PyPI](https://pypi.org/project/langchain-aisearchapi/)  \n- [\ud83d\udcdd Blog](https://aisearchapi.io/blog/)  \n\n---\n\n## \ud83c\udf89 Get Started Now\n\n```bash\npip install langchain-aisearchapi\n```\n\n\ud83d\udc49 [Join now](https://app.aisearchapi.io/join?utm_source=pypi) for a free API key and start building!\n\n---\n\nMade with \u2764\ufe0f for LangChain developers using the AI Search API.\n\n---\n\n## \ud83d\udd0d SEO Keywords\n\nLangChain AI Search API integration, AI Search API Python package, semantic search LangChain, contextual AI LangChain, AI chatbot LangChain, summarization API LangChain, web search API LangChain, AI Search API key setup, summary API integration\n",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) 2025 aisearchapi\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.",
    "summary": "LangChain integration for AI Search API (LLM, Chat, tools, and chains).",
    "version": "1.0.5",
    "project_urls": {
        "Homepage": "https://github.com/your-org/langchain-aisearchapi",
        "Issues": "https://github.com/your-org/langchain-aisearchapi/issues"
    },
    "split_keywords": [
        "ai agents",
        " ai chatbot",
        " ai search api",
        " aisearchapi",
        " automation",
        " chat models",
        " contextual ai",
        " contextual search",
        " fact checking",
        " intelligent agents",
        " langchain",
        " langchain-extension",
        " langchain-integration",
        " langchain-tools",
        " large language models",
        " llm",
        " nlp",
        " python ai",
        " question answering",
        " research chain",
        " search api",
        " semantic search",
        " summarization api",
        " summary api",
        " web search api"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9bf6a7d0bfb0bd9ea1da05a82615b3329d61e2d51b0fcb657b3ebe5d221d28f3",
                "md5": "09f9ae3d2d9c611d3df86c83f91a042a",
                "sha256": "3bb744150224c018e41492628ebdf25b89bad1a23ee54c941bf7d3e245075e2e"
            },
            "downloads": -1,
            "filename": "langchain_aisearchapi-1.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "09f9ae3d2d9c611d3df86c83f91a042a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 9704,
            "upload_time": "2025-08-30T20:18:16",
            "upload_time_iso_8601": "2025-08-30T20:18:16.530493Z",
            "url": "https://files.pythonhosted.org/packages/9b/f6/a7d0bfb0bd9ea1da05a82615b3329d61e2d51b0fcb657b3ebe5d221d28f3/langchain_aisearchapi-1.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e32f0d99579ef8295b8fc26b1a8f7743a22d68acc71ca277d36681358295ad4f",
                "md5": "9b995cfc1cfc2b1adc2b81663fc2261d",
                "sha256": "1c3cbe897d93c22f4c1dc713252c54c358efe5012708f729a7fb2bd5f9ab874f"
            },
            "downloads": -1,
            "filename": "langchain_aisearchapi-1.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "9b995cfc1cfc2b1adc2b81663fc2261d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 13588,
            "upload_time": "2025-08-30T20:18:17",
            "upload_time_iso_8601": "2025-08-30T20:18:17.642815Z",
            "url": "https://files.pythonhosted.org/packages/e3/2f/0d99579ef8295b8fc26b1a8f7743a22d68acc71ca277d36681358295ad4f/langchain_aisearchapi-1.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-30 20:18:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "your-org",
    "github_project": "langchain-aisearchapi",
    "github_not_found": true,
    "lcname": "langchain-aisearchapi"
}
        
Elapsed time: 1.01712s