Skip to main content

Gestell's Langchain Integration

Project description

Gestell's Langchain Integration

license python-version version Coverage Status CircleCI

Preview

Query and prompt your gestell collections with langchain

Quick Start

Step 1: Install the langchain integration package:

pip install gestell-langchain
uv add gestell-langchain

Step 2: Integrate it with your agent:

from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
from langchain_gestell import GestellSearchTool, GestellPromptTool

llm = ChatOpenAI()

agent = create_react_agent(
    model=llm,
    tools=[
      # Add api_key and collection_id if not in your env
      GestellSearchTool(api_key="... OPTIONAL", collection_id="... OPTIONAL"),
      GestellPromptTool()
    ],
)

You can view a more comprehensive demo here.

Open an issue if you would like more comprehensive demos or need clarity on how things work.

View the CHANGELOG to review updates to the library.

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

gestell_langchain-0.1.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

gestell_langchain-0.1.1-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file gestell_langchain-0.1.1.tar.gz.

File metadata

  • Download URL: gestell_langchain-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.9

File hashes

Hashes for gestell_langchain-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e7390ea28112b5d595e1837321b54d61fc581d79f53d6ffeeaeeb7944e35c25c
MD5 0bbe081c4cf3b6f858caf9cce34f6c24
BLAKE2b-256 83c0da0e3bdf03768f8e98786703db5766759cf3369bbaa9c221de38f05fbbfa

See more details on using hashes here.

File details

Details for the file gestell_langchain-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gestell_langchain-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8ef40293d46076ca9a0859457c05bdf085f2d6aa849bf958912ef10be150e11
MD5 28b85b4698b4933d0086336ec13ed4c1
BLAKE2b-256 878326b891aff68089958c9854e7f5e97d8f507bdfdf639e860e3a91f1efe1d1

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