Hugo
05/05/2025, 3:45 PMChiranjeet Mishra
05/05/2025, 3:47 PMVapi Support Bot
05/05/2025, 3:47 PMjavascript
// Example approach (not specific to Trieve)
const response = await fetchTrieveKBResults(query);
const parsedData = JSON.parse(response);
// Extract relevant information before injecting
const relevantInfo = parsedData.yourSpecificField;
Parsing before injection helps ensure accuracy and proper ordering of information, as mentioned by other users in the Vapi community.
Sources:
- [Discord discussion about KB chunks as JSON](https://discord.com/channels/1211482211119796234/1335953119275782144)
- [Discord discussion about ensuring accuracy](https://discord.com/channels/1211482211119796234/1342860712938307697)Hugo
05/06/2025, 8:14 AMKings_big💫
05/06/2025, 3:31 PM