Skip to main content

LangChain integration for CortexDB — long-term memory for AI systems

Project description

cortexdb-langchain

LangChain integration for CortexDB long-term memory.

LLM provider note (audit BLK-2): the canonical quickstart uses from langchain_openai import ChatOpenAI for the example agent. CortexDB itself is LLM-agnostic — the LangChain example just needs some model to drive the agent. Swap with one line:

# OpenAI (default in the docs)
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(model="gpt-4o")

# Anthropic
from langchain_anthropic import ChatAnthropic
llm = ChatAnthropic(model="claude-sonnet-4-6")

# Google
from langchain_google_genai import ChatGoogleGenerativeAI
llm = ChatGoogleGenerativeAI(model="gemini-1.5-pro")

# Local / Ollama (no API key)
from langchain_community.chat_models import ChatOllama
llm = ChatOllama(model="llama3.1")

Nothing in cortexdb-langchain reads OPENAI_API_KEY. The retriever and memory classes only talk to the CortexDB v1 surface.

Install

pip install cortexdb-langchain

API base URL

The SDK and integration default to https://api-v1.cortexdb.ai (audit FRI-8). Override with CORTEXDB_API_URL if you self-host.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cortexdb_langchain-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cortexdb_langchain-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file cortexdb_langchain-0.1.0.tar.gz.

File metadata

  • Download URL: cortexdb_langchain-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for cortexdb_langchain-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d20395a38e11a103b8d3012fc7e162fabf3f827b5f2f61e50252c67c075723ec
MD5 8d32bc460bf86c7353cb80c5ec07b392
BLAKE2b-256 2bc5dc7b14c8048fcbcda2f785d5b872e9326e020449ecc6b7476652a42017a5

See more details on using hashes here.

File details

Details for the file cortexdb_langchain-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cortexdb_langchain-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4dcd19e099d2a788d9df51a31c16d11e408c0c5ba69b4d9360e145e46ad09e9c
MD5 f6b188c423bf9f4eaba7a76144c450db
BLAKE2b-256 3b6a054464756e2b9766279a8dd0c0353ba196eb1c9223508d46705e756b8281

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page