Skip to main content

an unofficial langchain binding for turbopuffer

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.1.tar.gz (3.1 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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_turbopuffer-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 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.1.tar.gz
Algorithm Hash digest
SHA256 e7f7fe353fe4f0dab3543ca8201b75666a7ec58c72d15ea626b6743e12d98f71
MD5 310f00a9e3b5b6c2b8b7593868e4bfa3
BLAKE2b-256 1edb59430bf63c023feb515fc3530defb663732972f966d4ce7cbb736d6b7b37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_turbopuffer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad2a965f9fcab4dc7f2a9ea02b8740456421f74fde9840cd09ed32760c1cdcb6
MD5 d7b1c9af00c9e8d04d94b7c2d4b73c61
BLAKE2b-256 72d802ea0208adc89d829b27dc932c1f97701b77727a56413e32e754f3ad41ff

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