Opiniated RAG for integrating GenAI in your apps 🧠Focus on your product rather than the RAG. Easy integration in existing products with customisation! Any LLM: GPT4, Groq, Llama. Any Vectorstore: PGVector, Faiss. Any Files. Anyway you want.
Example of listing all files in directory and parametrizing a fixture with the documents1
def list_files_in_data_directory():
data_dir = Path("./tests/data")
return [file for file in data_dir.iterdir() if file.is_file()]
def file_id(file_path):
return file_path.name
@pytest.fixture(params=list_files_in_data_directory(), ids=file_id)
def qfile_placeholder(request) -> QuivrFile:
"""Fixture to create a QuivrFile for each file in data/ directory."""
file_path = request.param
for test_processing
See Amine Comments here !!!