chatflow
chatflow copied to clipboard
Leveraging LLM to build Conversational UIs
Llmlingua can help with multiple docs rerank and reduce tokens https://github.com/microsoft/LLMLingua
I changed the DB schema to store users in DB: `users` table created. I use now `user_ref` (`int`) instead of `user_id` (`VARCHAR`) to refer to a user. In `UserInputDto` I...
Intended to fix issue #7. This is not enough tested.
API (`PUT` - is it a good choice?) for updating a doc. _Not tested._ Please either test or explain me which part of the UI to use for testing.
There, apparently should be `f'CONTEXT\n----------------------------\n {context}'` instead of `f'CONTENT\n----------------------------\n {context}'` in server/src/core/llm/prompt_handler.py
In `Given the contents below, please answer which content option it should be used to replay to the user input.` there should be `reply` instead of `replay`. `server/src/core/llm/prompt_handler.py`
Currently the apps are stored using [file](https://github.com/apssouza22/chatflow/blob/main/server/src/core/app/app_dao.py#L21), we should change it to store in the postgres db.
Create a simple integration test to test the rest endpoiints. Basically we should create python tests to call our API and validate the responses. We have few REST endpoints that...