radu
04/21/2025, 1:12 PMconst createPlan: TrieveKnowledgeBaseCreate = {
type: 'create',
chunkPlans: [
{
fileIds: [fileResponse.id],
websites: [],
targetSplitsPerChunk: 1,
splitDelimiters: ['~'],
},
],
};
https://cdn.discordapp.com/attachments/1363865039299416114/1363865039538360430/image.png?ex=680795cc&is=6806444c&hm=f87f019316afbda39056326a96de6acd7276f947812dec964fcb9ffc2fac3fa6&Shubham Bajaj
04/21/2025, 1:47 PMcreate
option is still valid and implemented in the code, but it has been explicitly hidden from the API documentation.
The Create
option has been commented out in the OpenAPI schema definition, while the Import
option remains exposed. This means:
1. The functionality for type: 'create'
is still fully implemented in the codebase (as seen in the transform function's switch statement that handles both create and import cases)
2. The API will still accept and properly process requests with type: 'create'
3. However, this option is intentionally hidden from the API documentation/OpenAPI specification
the documentation would no longer show this as a valid option, but the code still supports it.
This is likely a case where the API is being evolved, but backward compatibility is maintained for existing integrations.radu
04/21/2025, 2:15 PMShubham Bajaj
04/21/2025, 8:23 PMKings_big💫
04/21/2025, 11:00 PMradu
04/22/2025, 1:58 PMradu
04/23/2025, 12:54 AM