Skip to content

LangChain

This section details KDB.AI and the integration with LangChain.

KDB.AI can integrate with LangChain, which utilizes LLMs to offer a more human-like interaction.

LangChain is a framework designed to simplify the creation of applications using large language models. As a language model integration framework, LangChain's use-cases largely overlap with those of language models in general, including document analysis and summarization, chatbots, and code analysis. - Wikipedia

Check out the official LangChain repository here: GitHub Repository.

Getting Started

Prerequisites

  • Python 3
  • Pip
  • Git

Install

pip install ipython jupyter pyarrow openai pypdf tiktoken kdbai-client langchain

Start Jupyter

jupyter notebook

Example

Notebook example to use KDB.AI as a LangChain vector store.

You need a KDB.AI endpoint and API keys for KDB.AI and OpenAI.