Skip to main content

Gestell's Langchain Integration

Project description

Gestell's Langchain Integration

license python-version version

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.

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.0.tar.gz (2.0 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.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gestell_langchain-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5713457c50b9376b8443ddee780fcba61fede057a228ce83ece68b8cec6b0921
MD5 8da52d10a0c4e86eb761dd48984a6ad2
BLAKE2b-256 935fac227b73c8796676334d88f5e49eb82add623f220785d21381cd856d641f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gestell_langchain-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bd85b6fccd51a93f6b2c0507059ffb65fadfe6e00913fcaceae183df3b8e96a
MD5 87b8365f6a7bc8011278bd50e9b71a07
BLAKE2b-256 19f690359ed9815a2801d5c154b9daa5bcd51021e73aa1d704574b39d917b102

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