-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uploading new documents via interface💡 #1
Comments
Hi @bw-Deejee, thanks a lot for the nice suggestion! I just added it to the API, it can be done easily through the OpenAPI swagger UI, with a user friendly file picker that accepts multiple files. Files will be automatically uploaded to the Since it is implemented through the API it can also be done programmatically, e.g. having a script that feeds your QA chatbot with documents It is live on the Note that I recently made some changes to the volume setup in the |
Hi @vemonet, thanks for the quick reply and for this cool project. I'm not sure if I misunderstood your answer. I cloned the newest version of the repo just now and ran the "hatch run dev" but I don't see an option to upload files right in the web interface yet. |
The upload UI is not directly in the "chat UI", but in the "API UI" which you can access by clicking the green icon top right Now that you say this I am thinking I should make this more clear maybe :)
As I see it we should be able to do everything through the API, the UI is a bonus to provide a comfortable chat experience. Every feature should be first implemented through the API (to enable programmatic access), and if it is worth it we can add it to the UI (but in the end the UI just calls the API) |
Ok, completely understood now. I found the document upload and tested it. |
Thanks for the details! I see what you mean From my point of view uploading document is more an "admin" feature, and I would like to avoid having admin-related things in the chat UI (or it should be in a popper that is triggered by a click) The best option I see would be to have a separate page for all admin related things: adding/checking documents, rebuilding the vectorstore, editing the LLM config directly from the UI.... To be able to serve the web UI from python, and not require any JS precompiling step, I took the approach of using vanilla JS without any framework (I am just using tailwind for the css). This is actually really easy to do with ChatGPT ;) because building UI in vanilla JS is so well discussed and documented over the years over the web, that it will really be able to build any features you describe without much issues, just past your whole HTML file and tell what you want and it will get it almost right, almost every time! Then you will be able flex in front of all those softcore web frameworks-loving developers That said, I am not against using a modern framework like svelte/qwik/solid, but we would need to find a way to integrate the compiled JS in the pip package properly (how do we do? Pre-compile the JS with jinja2 variables inside?). Or ditch the pip package completely and go full docker Right now I am more focused on getting the deployment stable, and I see the API UI as a good cheap alternative to have an admin UI, so I will probably first check to add the possibility to update the config from the API, but an admin UI will be definitely be something I will look into in the future In the meantime feel free to have a try at it! With the help of LLMs it is surprisingly fast and enjoyable :) |
I like the software very much... going full docker is in my opinion not so cool. I am happy its running without docker. but still has some issues. For example I cant run the faiss vectorstore , it creates it and says "killed" out of nowehere. I already implemented a WordPress Plugin creating automatic posts thru its API |
Describe the feature
It would be nice to be able to upload new documents in the web interface. Uploaded documents would have to be ingested by the model and be accessable in the current session.
An idea of implementation
No response
The text was updated successfully, but these errors were encountered: