store#
Module containing VectorStore utility
Functions
|
Retrieve the list of books and store them locally. |
Classes
|
Simple class to represent a book |
|
VectorStore class to handle the embedding database |
- class store.Book(title: str, url: str, filename: str | None = None, encoding: str = 'utf-8')[source]#
Simple class to represent a book
- class store.VectorStore(documents_path: str = '/home/runner/work/alice-rag-llm/alice-rag-llm/src/documents', store_path: str = '/home/runner/work/alice-rag-llm/alice-rag-llm/src/store')[source]#
VectorStore class to handle the embedding database
- store.load_documents(books: list[Book], folder: str = '/home/runner/work/alice-rag-llm/alice-rag-llm/src/documents')[source]#
Retrieve the list of books and store them locally.
Parameters#
- bookslist[Book]
List of books to download
- folderstr, optional
The folder where to store the books, by default src/document.