Skip to main content

LangChain integration for FluxVector — vector search with built-in embeddings

Project description

langchain-fluxvector

LangChain integration for FluxVector — vector search API with built-in embeddings.

Installation

pip install langchain-fluxvector

Usage

from langchain_fluxvector import FluxVectorStore

# FluxVector handles embeddings server-side — no OpenAI key needed
vs = FluxVectorStore(
    api_key="fv_live_...",
    collection="my-docs",
)

# Add documents
vs.add_texts([
    "FluxVector is a vector search API",
    "It supports 100+ languages",
    "Hybrid BM25 + vector search included",
])

# Search
results = vs.similarity_search("multilingual search", k=3)
for doc in results:
    print(doc.page_content, doc.metadata["score"])

Why FluxVector?

  • No embedding model needed — FluxVector embeds text server-side
  • Hybrid search — BM25 + vector with RRF fusion, out of the box
  • 100+ languages — Multilingual-e5-large handles cross-lingual retrieval
  • $29/mo for 1M vectors — Flat pricing, no per-query charges
  • Self-host free — Same Docker image, your infrastructure

With LangChain Chains

from langchain_fluxvector import FluxVectorStore
from langchain_openai import ChatOpenAI
from langchain.chains import RetrievalQA

vs = FluxVectorStore(api_key="fv_live_...", collection="docs")
retriever = vs.as_retriever(search_kwargs={"k": 5})

qa = RetrievalQA.from_chain_type(
    llm=ChatOpenAI(),
    retriever=retriever,
)
answer = qa.invoke("What languages does FluxVector support?")

Links

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_fluxvector-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

langchain_fluxvector-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_fluxvector-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for langchain_fluxvector-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c0a79db1061e8e632a1a23ce0f3dd64bed7a1ebb372b7dfaf1da28cf6b1b9916
MD5 a6676535eb88a566a3173b0371232e6b
BLAKE2b-256 379a00fb5216259388c7407bfc39ad4c61daba89d91e2016172e58c4a53128a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_fluxvector-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86b93d9490d25a68ac981fe1634d9c11e647f8054672ba3f10ff1f7b8187eeec
MD5 8fec719ae0d80fd0e196088f98d22d3b
BLAKE2b-256 e4807fd7627887f44d64d4b21b2476432e8a71b25dbd26dfddbba203a8f7917f

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