QuivrHQ / quivr

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.
https://core.quivr.com
Other
36.62k stars 3.57k forks source link

Add new tests in Megaparse #3435

Open chloedia opened 1 week ago

chloedia commented 1 week ago

for test_processing

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

See Amine Comments here !!!

linear[bot] commented 1 week ago

CORE-266 Add new tests in Megaparse