Skip to main content

Getting Started with Lyzr Chat Agent SDK

Lyzr’s Chat Agent is powered by a state-of-the-art chatbot architecture that super abstracts all the complexity of building an advanced LLM-powered chatbot. This enables developers to focus more on data quality, prompt quality, and the application use case instead of spending countless hours stitching together various building blocks and indexes to build the backend RAG pipeline. Lyzr’s Chat Agent integrates all the building blocks of a chatbot Lyzr Chat Agent

What are the various methods and arguments that you could pass to Lyzr’s ChatBot class?

Methods

Chat with PDF

Sample Code 👇
Types of Arguments
string
Use input_dir to parse all the .pdf files from a directory.
list
Pass a list of .pdf file paths.
boolean
Set to true to ignore hidden files when using input_dir.
boolean
Set to true to consider the filename as the id for indexing the parsed data.
boolean
Set to true to parse files from all subdirectories.
string
System-wide prompt to be prepended to all input prompts, used to guide system “decision making”.
string
A specific wrapper instruction for passed-in input queries.
string
The default embed model is OpenAI text-embedding-ada-002. Default fallback model is bge from Hugging Face.
object
Default language model is OpenAI gpt-4-0125-preview. Default temperature is 0.
object
The default vector store is Embedded Weaviate DB.
object
Default chunk_size is 1024 tokens. Default overlap is 20 tokens.
object
Default is none.
object
Default is none.

Integrations

Vector Store Integrations

Lyzr + Weaviate

Lyzr + Supabase Pgvector

Install vecs and supabase

Lyzr + Qdrant Vector Store

Lyzr + LanceDB Vector Store

LLM Integration