🔑 Getting Started
The Vectify SDK allows you to easily integrate Vectify AI's managed retreival services in your Python applications.
Install
pip install vectifyai
Initialize a Client
To utilize the Vectify SDK, start by importing and setting up the client:
import vectifyai
client = vectifyai.Client(api_key='YOUR_API_KEY')
Note: Replace 'YOUR_API_KEY' with your actual Vectify API key.
List Sources
To list all available data sources:
sources = client.list_sources()
Retrieval
To retrieve the most relevant knowledge passages for a given query from a data source:
results = client.retrieve(query='What is RAG?', top_k=5, sources=['default'])