mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 01:21:48 +03:00
eda619f454
# Description - Save and load brain to disk: ```python async def main(): with tempfile.NamedTemporaryFile(mode="w", suffix=".txt") as temp_file: temp_file.write("Gold is a liquid of blue-like colour.") temp_file.flush() brain = await Brain.afrom_files(name="test_brain", file_paths=[temp_file.name]) save_path = await brain.save("/home/amine/.local/quivr") brain_loaded = Brain.load(save_path) brain_loaded.print_info() ``` # TODO: - Loading all chat history - Loading from other vector stores, PG for example can be great ... |
||
---|---|---|
.. | ||
processor | ||
__init__.py | ||
chunk_stream_fixture.jsonl | ||
conftest.py | ||
fixture_chunks.py | ||
test_brain.py | ||
test_chat_history.py | ||
test_chat_llm.py | ||
test_config.py | ||
test_llm_endpoint.py | ||
test_quivr_file.py | ||
test_quivr_rag.py | ||
test_utils.py |