Skip to main content
Open on GitHub

Vectorize

Vectorize helps you build AI apps faster and with less hassle. It automates data extraction, finds the best vectorization strategy using RAG evaluation, and lets you quickly deploy real-time RAG pipelines for your unstructured data. Your vector search indexes stay up-to-date, and it integrates with your existing vector database, so you maintain full control of your data. Vectorize handles the heavy lifting, freeing you to focus on building robust AI solutions without getting bogged down by data management.

安装与设置

安装以下 Python 包:

pip install langchain-vectorize

在此处注册一个免费的Vectorize账户访问令牌部分生成访问令牌 获取您的组织ID。从浏览器URL中,提取URL中/organization/后的UUID

设置以下变量:

VECTORIZE_ORG_ID="your-organization-id"
VECTORIZE_API_TOKEN="your-api-token"

检索器

from langchain_vectorize import VectorizeRetriever

retriever = VectorizeRetriever(
api_token=VECTORIZE_API_TOKEN,
organization=VECTORIZE_ORG_ID,
pipeline_id="...",
)
retriever.invoke("query")

示例笔记本 中了解更多信息。