[RFC] 143 - ✍️ Create Documents in Knowledge #9913
RiverTwilight
started this conversation in
RFCs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Allow user to input custom documents in the knowledge base, or edit existing documents converted from PDF file.
Features
Design
Knowledge Screen
Chat Screen
Implementation
The key is introducing a new subtract entity "knowledge", which is actually a combination of some files and documents.
New
knowledgerepo+packages/database/src/repositories/knowledge/index.ts
Combine results from
filesanddocumentstables.New
knowledgelambda client+src/server/routers/lambda/knowledge.ts
Fetch knowledge repo.
Update on file services
getFiles->getKnowledgeItems: Call knowledge lambdagetFile->getKnowledgeItem: Call knowledge lambdaUpdate on file action
useFetchFileManage->useFetchKnowledgeItems: CallgetKnowledgeItemsserviceuseFetchFileItem->useFetchKnowledgeItem: CallgetKnowledgeItemserviceBeta Was this translation helpful? Give feedback.
All reactions