LangChain plugin for ChatGPT
Top 62.8% on sourcepulse
This project enables LangChain chains and agents to be deployed as AI Plugins for ChatGPT, allowing them to interact with ChatGPT or other agents. It targets developers building conversational AI applications who want to extend ChatGPT's capabilities with custom logic and data sources. The primary benefit is seamless integration of complex LangChain workflows into the ChatGPT ecosystem.
How It Works
The project acts as a FastAPI web server that exposes LangChain chains as API endpoints. It follows the AI Plugin specification, providing an OpenAPI schema and a manifest file for ChatGPT to discover and interact with the plugin. Developers define their LangChain logic in a chain.py
file and metadata in constants.py
, which are then served by the FastAPI application. This approach leverages LangChain's flexible chaining and agent capabilities within the familiar ChatGPT interface.
Quick Start & Requirements
git clone git@github.com:langchain-ai/langchain-aiplugin.git
poetry install
LANGCHAIN_DIRECTORY_PATH
, OPENAI_API_KEY
, BEARER_TOKEN
).poetry run app --port 8080
http://0.0.0.0:8080/docs
Highlighted Details
chain.py
and metadata via constants.py
.Maintenance & Community
This repository is part of the LangChain ecosystem. Further community and maintenance details would typically be found on the main LangChain GitHub or Discord.
Licensing & Compatibility
The specific license for this repository is not explicitly stated in the provided README. Compatibility for commercial use or closed-source linking would depend on the underlying LangChain license and any specific terms for this plugin project.
Limitations & Caveats
The README assumes familiarity with LangChain and the AI Plugin specification. Detailed setup and configuration for specific chains or agents are left to the developer to implement within the provided templates. The project is presented as a framework for integration rather than a fully managed solution.
1 week ago
Inactive