AnswerDotAI / AnswerDotAI/RAGatouille

num_workers support (Multi-Core CPU)

Open
#123 2 comments 2 reactions 0 assignees View on GitHub
enhancement good first issue help wanted
Dominant language
Python
Stars
4k
Forks
276
PR merge metrics
No merged PRs in 30d

Description

Can the document splitting and other CPU centric functions be made multi-core ?

When running
required_exts = [".csv"]

reader = SimpleDirectoryReader(...

documents = reader.load_data(show_progress=True,num_workers=6)

ragatouille_pack = RAGatouilleRetrieverPack(
documents, # List[Document]
llm=Ollama(model="phi", request_timeout=10000.0),
index_name="my_index",
top_k=5
)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the SimpleDirectoryReader.load_data entry point shown in the example and determine which document-splitting or other CPU-centric operations are in scope for num_workers. Check how show_progress and num_workers are currently handled, then define completion as safe multi-core execution for the requested operations with coverage for the example usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.