Main API - davidmarsoni/llog GitHub Wiki
This wiki page provides an overview of the main API endpoints available in the Llog project. The APIs are designed to facilitate interaction with the core functionalities of the project, including file uploads, querying, and cache management.
This list is exhaustive, but will focus on the key functionalities and usage of each endpoint.
:clipboard: Table of Contents
:globe_with_meridians: Flask API
To be able to use our WebUI, Flask provides access to page through the API. Here's the following pages on the website:
/The welcome page of the website/aboutThe about page of the website/files/addPage to add RAG content to the site's knowledge base/files/viewPage to see the content uploaded, refresh the cache, delete files and change metadata/chatbot/chatThe chatbot page where you can ask questions to the LLM and get answers
[!NOTE] It is also important to note that all our page do not keep the cache with the following code. In this case, the
responseis what will be sent to the client's browser.
def add_cache_headers(response):
"""Add cache control headers to response"""
response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
response.headers['Pragma'] = 'no-cache'
response.headers['Expires'] = '0'
return response