quivr/backend/core/quivr_core
AmineDiro eda619f454
feat: save and load brain (#3202)
# 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 ...
2024-09-13 06:35:28 -07:00
..
brain feat: save and load brain (#3202) 2024-09-13 06:35:28 -07:00
files feat: save and load brain (#3202) 2024-09-13 06:35:28 -07:00
llm feat: save and load brain (#3202) 2024-09-13 06:35:28 -07:00
processor feat: save and load brain (#3202) 2024-09-13 06:35:28 -07:00
storage feat: save and load brain (#3202) 2024-09-13 06:35:28 -07:00
__init__.py feat: add chat with models (#2933) 2024-08-06 05:51:27 -07:00
chat_llm.py fix(chat): order of chat history was reversed (#3148) 2024-09-04 07:29:08 -07:00
chat.py chore: Add initial documentation files and configuration (#3126) 2024-09-09 02:06:16 -07:00
config.py feat: quivr api use quivr core (#2868) 2024-07-15 10:10:03 -07:00
models.py feat: quivr core 0.1 (#2970) 2024-09-02 10:20:53 +02:00
prompts.py fix: quiv core stream duplicate and quivr-core rag tests (#2852) 2024-07-12 06:07:39 -07:00
quivr_rag_langgraph.py feat: save and load brain (#3202) 2024-09-13 06:35:28 -07:00
quivr_rag.py chore: Add initial documentation files and configuration (#3126) 2024-09-09 02:06:16 -07:00
utils.py feat: using langgraph in our RAG pipeline (#3130) 2024-09-03 06:23:23 -07:00