Quick Start
To get started with the SearchAgent SDK, you’ll first need to ensure that your environment is set up with all necessary dependencies. While specific installation commands are not provided here, typical Python package management tools like pip
can be used to manage your environment.
Key Components
The SDK is comprised of several key components, each tailored to handle different types of content:
- PDF Files
- DOCX Files
- Text Files
- Webpages
- Websites
- YouTube Videos
These components allow the SearchAgent to Train, process and index content from these sources, making it searchable within your Search Agent.
Using the SearchAgent SDK
The following sections provide a step-by-step guide to using the SearchAgent SDK in your projects.
Initializing the SearchAgent
To use the SDK, start by importing and initializing the SearchAgent
class:
Setup Vector Database
Let’s configure Qdrant Vector Database. please intall pip install qdrant_client
Search Agent supports variety of Vector Databases
Setup Large Language model
Search Agent supports variety of Large Language Models
Training Search Agent
With the SearchAgent
initialized, you can begin adding content from various sources. The SDK provides methods for integrating different content types, as outlined below.
Adding PDF Files
Adding DOCX Files
Adding Text Files
Adding Webpages
Adding Websites
Adding YouTube Videos
Let’s Search
Sources
Advanced Configuration
Each method supports various parameters allowing for detailed customization of how content is processed and indexed. These include specifying whether to include hidden files, whether to process directories recursively, and how to handle file extensions.