VoiceflowVVoiceflow
Powered by
GrzesiekG
Voiceflow•5w ago•
4 replies
Grzesiek

internalMetadata - KB settings

❓KB
Hello, I am testing the KB API in Postman. I set a metatag during document import - category: samsung.

During the test, I submitted a query without filters with "synthesis": true

{
"chunkLimit": 2,
"synthesis": true,
"settings": {
"model": "claude-v2",
"temperature": 0.1
},
"question": "Jaka jest pojemnosc"
}

and received the correct response with output:
{
"type": "completion",
"model": "claude-4-sonnet",
"output": "5 kg.",
"duration": 0,
"tokens": 530,
"queryTokens": 470,
"answerTokens": 60,
"cacheWriteTokens": 0,
"queryCachedTokens": 0,
"queryRemainderTokens": 470,
"inputMultiplier": 1.5,
"cacheMultiplier": 0.15,
"outputMultiplier": 7.5,
"cacheWriteMultiplier": 1.875,
"base": {
"queryTokens": 313,
"answerTokens": 8,
"cacheWriteTokens": 0,
"queryCachedTokens": 0
},
"chunks": [
{
"score": 0.50162506,
"chunkID": "22328961-40f5-419e-b380-88b6fd97e40e",
"documentID": "69676a81ab9e87748841ff60",
"content": "Pralka Samsung jest bardzo fajna. Ma pojemność 5 kg.",
"metadata": {},
"internalMetadata": [
{
"key": "category",
"values": [
"samsung"
]
}
],
"source": {
"type": "text",
"name": "pralka.txt",
"canEdit": false,
"tags": []
}
}
]
}

When I wanted to add filters:
{
"question": "Jaka jest pojemność",
"chunkLimit": 2,
"synthesis": true,
"settings": {
"model": "claude-v2",
"temperature": 0.1
},
"filters": {
"category": {
"$eq": "samsung"
}
}
}

no value appeared in the output:

{
"type": "completion",
...
"output": null,
...
"chunks": []
}

Please help me solve this problem 🙂
Voiceflow banner
VoiceflowJoin
Voiceflow is your community to get help, stay up to date on product releases, and connect with builders, experts, and the Voiceflow team⚡
13,087Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements
Recent Announcements
jacklyn

# Let your agents search the web 🔎 Hey everyone! We just released the web search tool for the agent step! Your agents can now automatically search the web for information, letting your agent supplement the LLM's knowledge and the data in its knowledge base with live, up-to-date information. Plus.... * You can restrict searches to specific domains, so your agent only searches sites that you own * This is a tool, so you remain in control of when the agent searches the web * Results are automatically summarized in a way that your agent can automatically understand Under the hood, we're using OpenAI's web search API. Give it a try, and let us know what you think! https://docs.voiceflow.com/changelog/native-web-search-tool

jacklyn · 3mo ago

jacklyn

jacklynbiggin's Thread

jacklyn · 3mo ago

hurt-tomato

connor_maclean's Thread

hurt-tomato · 3mo ago

Similar Threads

KB
scattered-tealSscattered-teal / ❓┃help
2y ago
kb error
DrBannyDDrBanny / ❓┃help
6mo ago
KB issue
mikchlMmikchl / ❓┃help
7mo ago
KB sync
hrubasekHhrubasek / ❓┃help
8mo ago