Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 1.3 KB

TECHNICAL.md

File metadata and controls

31 lines (16 loc) · 1.3 KB

Verba - Technical Documentation

This technical documentation is intended for developers who want to understand the inner workings of Verba. Please note that this document might be uncomplete and missing some parts. If you encounter any issues or have questions, please feel free to open an issue.

FastAPI Server

Verba is served through a FastAPI server. The server is serving the static frontend files through the specified port. If you're modifying the frontend, you will need to rebuild the static files again. The frontend is sending API calls to itself which the FastAPI server handles. The server can handle multiple client connections which are handled by the ClientManager class.

ClientManager

TODO

For handling large upload of files, the BatchManager class handles batches of data of a single file to merge it into a single file once all batches have been received.

BatchManager

TODO

Websocket

TODO

Automated Testing

TODO

FAQ

How to control the position of context sent to the Generator to generate a response?

Every generator class has a prepare_messages method. This method is used to format the messages that are sent to the LLM. The position of the context in the messages is important because it determines where the context is placed in the conversation.