https://discord.gg/botpress logo
Embedding on Knowledge Base
# 🤝help
w
Hi guys can you help with something? I'm questioning which is the best way to separate my documents in the Knowledge bases. The embedding pattern in other chatbot tools are 1000 caracters with 200 chars overlapping. - Does Botpress generate embeddings for text? If so, what is the character limit for the input used to create an embedding? - How many documents does Botpress typically retrieve when performing a similarity search? Is there a threshold for vector distance between documents when retrieving them? And can I configure the autonomous node to ignore results beyond a certain vector distance in the prompt?
l
Hey @wooden-parrot-76912 thank you for reaching out! To answer some your question: - Yes Botpress generates embeddings for text! - I couldn't get the exact character limit for the input however Document uploads can be up to 50mb in size, website urls are limited to 350 characters and each bot can store up to 5000 vectors ~ which is equal to about 200 blog articles or 1000 pdf pages - The default # of docs retrieved by botpress when performing a similarity search is 20 however you can adjust this using the 'limit' parameter. The maximum being 50 in a single search. - Botpress does not expose a direct setting to configure a vector distance threshold. - You can configure the Autonomous Node ignore less relevant results or to only use answers with high confidence (by editing the instructions). This doesnt set a hard vector distance threshold however it gives you some control over the relevance of answers. Hope this helped 🙂
w
Thanks for the answer!! Could you tell me what model do you guys use to generate the embedding for the texts?
l
What I can tell you is that Botpress uses a Knowledge Agent to retrieve information from the knowledge bases, and you can configure the model strategy for performance. Hope this helps 🙂
6 Views