How does the databank / RAG / vector storage work? My understanding is that using a…
- User
How does the databank / RAG / vector storage work? My understanding is that using a world info, I can implement RAG into my chat. And that I can store multiple 'memories' or other info in one world info entry, and the chunking will only return a relevant chunk. But what I get is the entire entry. Settings are 1KB size threshold, 512 char chunk size.
Assistant
- User
So it does or doesn't split world info entries to the most relevant parts?
Assistant
Based on the provided code and documentation, it appears that the World Info system in SillyTavern does not automatically split entries into the most relevant parts.
The chunking mechanism you mentioned earlier is not directly related to splitting entries into relevant parts. Instead, it's a performance optimization feature that breaks down large entries into smaller chunks of a specified size (e.g., 512 characters) to facilitate more efficient storage and searching in the vector database.
When you query the databank using a World Info entry, the system will return the entire entry that matches the query, not just the most relevant part. The query mechanism is based on vector similarity search, which returns the entire entry that has the highest similarity score, not just a portion of it.
If you need to extract the most relevant parts of an entry, you might need to implement a custom solution, such as:
- Post-processing: After retrieving the matching entry, you can use natural language processing (NLP) techniques, such as named entity recognition (NER) or keyword extraction, to identify the most relevant parts of the entry.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.