Skip to main content

No project description provided

Reason this release was yanked:

Unofficial community version of package

Project description

langchain-turbopuffer

Use Turbopuffer as a vector store for LangChain.

Usage

poetry add git+https://github.com/skyzh/langchain-turbopuffer
# see example.py for usage
from langchain_turbopuffer import TurbopufferVectorStore

vectorstore = TurbopufferVectorStore(
    embedding=OllamaEmbeddings(model="mxbai-embed-large"),
    namespace="langchain-turbopuffer-test",
    api_key=os.getenv("TURBOPUFFER_API_KEY"),
)

Local Development

git clone https://github.com/skyzh/langchain-turbopuffer
cd langchain-turbopuffer
poetry env use 3.12
poetry install

ollama pull mxbai-embed-large llama3.2
ollama run llama3.2
export TURBOPUFFER_API_KEY=your_api_key
poetry run python example.py
poetry run python example.py --skip-load

In the example, you can ask questions like "What is prompt engineering?"

License

MIT

Note that the example.py is from langchain-risinglight based on several online tutorials (see the file header for more details).

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

langchain_turbopuffer-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

langchain_turbopuffer-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_turbopuffer-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.13.1 Darwin/24.2.0

File hashes

Hashes for langchain_turbopuffer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 78bfeaeaedb4bcde828a609ffb35775d0a4393729d790076d1edb41b3452aecf
MD5 480bf5a203bd9e288f2fbee5fbd508a8
BLAKE2b-256 1391aaeb3f873808bb9a616d1aa089884f2e1dd816551511ef583bcddb60a9d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_turbopuffer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0555cddc7120d462bef9f9a7a3149a964875446fb1d54b799ff50b3166245c5
MD5 cd8e9ff48f4c0660641f9b26bb07531d
BLAKE2b-256 50ab40922e36fa4c067ab0977149b91a1a60cea1a9b7c4c990c724f471a93240

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