aiWithDoc · document search · 2023
Ask this file not the whole web
The file is uploaded to your own system. Training slices it, turns the slices into vectors, and keeps them in your own vector store. A question sends only the matching slices and the question to the model. The conversation opens from that one row.
Our own product · private deployment · Chinese interface
I
01 / What it is
Questions against your own files
aiWithDoc is document search on the organisation’s own server. A person signs in first. An outside visitor does not arrive with a public link and start asking.
The file is stored first. Upload Word, PDF or text, and add a description. The file goes to a configured directory. The name on disk becomes a unique id. The original name stays in the database. The list shows the suffix and whether it has been trained.
Training is slicing, not fine-tuning. Training cuts the file, embeds the slices, and stores them in your own Chroma. The whole file is not sent off to be fine-tuned. A row that has not been trained is marked as such.
One file at a time. The conversation opens from that row, and the window title is that file’s name. The question is embedded, the matching slices are retrieved, and those slices go to the model with the question.
II
Screens
See whether it is trained, then open that file
Every row shows whether the file has been trained. A trained row opens the conversation. The upload dialog states the formats and the size. The file names are the introduction’s sample.
III
02 / Why
A whole file should not leave just to answer one question
A public document chat wants the file uploaded to it. Here the file and the vectors stay on your own system. What is sent is the matching slices and this question.
The vector store stays here
Slices and vectors are written to Chroma. The relational records use MySQL. The original name, suffix, description and training state stay on the file row.
What you can ask is the file that has been sliced and kept in your own store, not a link dropped on the public web.
The question is scoped to one file
The window is bound to one row. Version 1.0 does not ask several files at once, and it does not summarise or read text inside images. Those are written down for a later version.
The reply has to come back to a slice
The model sees the retrieved slices and the organised question. The reply stays with this file rather than being fetched from the open web.
Who asked is in the log
Sign-in, operation and error logs are kept apart. Menus open by role. Splitting files by region was explicitly left out.
IV
03 / One file
Until it is trained, that row cannot be asked
The order is the one on the system diagram. The conversation uses the slices that training has already put in the vector store.
- 01
Upload
Choose the file and write a description. The dialog allows docx, pdf and txt, up to 10 MB.
- 02
Train
Slice it, embed it, write it to your own vector store. The row changes from not trained to trained.
- 03
Choose
Open the conversation from that row. The window title is the file’s name.
- 04
Retrieve
The question is embedded. The matching slices come back from the store.
- 05
Answer
The slices and the question go to the model together. The reply returns to this window.
V
04 / Besides
What sits next to the file
The design places this beside an electronic document library. The menu in use is the file list, system settings and logs.
- Users, departments, roles, menus
- Dictionaries, regions, system parameters
- Sign-in, operation and error logs
- Markdown is also named in the design
- Summaries, text inside images, and asking several files at once are a later version
- Menu permissions exist. Splitting data by region was left out
Document search, deployed on your own server
05 / Delivery
The office site is B/S. The files and the vectors stay on your server. Asking sends the matching slices and the question to OpenAI. This is not the list of nine general capabilities.
B/S management site · Spring Boot · Vue and Element UI · FastAPI · LangChain · OpenAI · Chroma
- One file at a time
- Slices and the question are sent to the model
- File names and answer text are the introduction’s sample
VI
06 / Questions
The boundary, first
Q.Does the whole file go to the model?
A.Not during training. The file is sliced and embedded on your own server, and stored in Chroma. When someone asks, the matching slices and that question are sent to OpenAI.
Q.Can several files be asked at once?
A.Not in 1.0. The window is bound to one row. Asking several files, summaries, and text inside images are written down for later.
Q.Which files can be uploaded?
A.The dialog accepts docx, pdf and txt, up to 10 MB. The design also names Markdown.
Q.Can an untrained file be asked?
A.The list marks it as not trained. After training, the row is marked trained, and the conversation opens from that row.
Q.Are the files on the screen a customer’s?
A.No. The names, descriptions and the answer text are the introduction’s sample.