-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Author: Jacopo Chevallard <[email protected]> Date: Wed Oct 9 12:06:23 2024 +0200 feat: starting reorganizing modules for simpler maintenance and readability
- Loading branch information
1 parent
1941218
commit 27b1d1b
Showing
6 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
quivr-core[base]==0.0.8 | ||
chainlit==1.1.306 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import tempfile | ||
|
||
from quivr_core import Brain | ||
from quivr_core.rag.quivr_rag_langgraph import QuivrQARAGLangGraph | ||
|
||
|
||
if __name__ == "__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 = Brain.from_files( | ||
name="test_brain", | ||
file_paths=[temp_file.name], | ||
) | ||
|
||
answer = brain.ask( | ||
"what is gold? asnwer in french", rag_pipeline=QuivrQARAGLangGraph | ||
) | ||
print("answer QuivrQARAGLangGraph :", answer.answer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters