Comments (2)
To address the slow initialization time of BM25Retriever
with a document store, consider these optimizations:
- Adjust
similarity_top_k
: Lowering this value can reduce computation during retrieval, potentially affecting initialization time. - Optimize Tokenizer: Using a simpler or more efficient tokenizer could speed up corpus processing.
- Corpus Preparation: Optimizing how the corpus is prepared, through more efficient text processing or parallelization, could reduce initialization time.
- Data Loading Strategy: Efficient data loading or preprocessing can lead to performance improvements.
Switching to MongoDBAtlasBM25Retriever
might offer faster initialization if it leverages MongoDB Atlas's infrastructure more efficiently than your current setup. This could include optimizations specific to MongoDB Atlas, such as efficient query execution plans. However, the actual improvement depends on various factors like your MongoDB Atlas configuration, dataset size and complexity, and network connection efficiency.
For detailed implementation and further optimizations, reviewing the base code for both BM25Retriever and MongoDBAtlasBM25Retriever could provide more insights into potential optimizations.
Details
Sources
- llama-index-integrations/retrievers/llama-index-retrievers-mongodb-atlas-bm25-retriever/llama_index/retrievers/mongodb_atlas_bm25_retriever/base.py
- llama-index-integrations/retrievers/llama-index-retrievers-bm25/llama_index/retrievers/bm25/base.py
- llama-index-legacy/llama_index/legacy/retrievers/bm25_retriever.py
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
from llama_index.
There's no way to make it faster that I know of. It's loading all the nodes from the docstore that can be slow.
You can get those nodes another way if you want, and pass them in instead of a docstore
from llama_index.
Related Issues (20)
- fOrTNITe rEDeeM cOdEs [uNUsED ~ 2024] free vbUCKS coDe tOdAY
- ePIC gAMES fORTNITE v bUCKS gENERATOR: cLAIM YOUR fREE VbUCKS
- ~!!(NEW-CODE)~!!The Ultimate V Bucks Code Generator Guide for Fortnite Epic Players
- ~!!(NEW-CODE)~!!The Ultimate V Bucks Code Generator for Fortnite Epic Players
- **100% SURE**Unlocking V Bucks Code: The Ultimate List of Free V Bucks Codes for Fortnite
- **100% UPDATE**Unlocking V Bucks Code: The Ultimate List of Free V Bucks Codes for Fortnite
- Fortnite Free V Bucks Code Generator 2024 *get* v bucks generator 2024 free vbucks codes
- fREE fORTNITE V bUCKS gENERATOR 2024 {Latest Codes Daily}Fortnite Free Skin Codes For May 2024
- Redeem$$Free~ V-Bucks codes Tools IN 2024!:Every Player Can get Fortnite Codes In-Game Item
- V-BUCKS-GENERATOR-2024-FREE-VBUCKS-CODES at {x%32} HOT 1
- [Bug]: Where is the InsertDemo.ipyb in official website? HOT 2
- [Question]: index.insert(new_docuemnts) performance HOT 4
- [Bug]: Query Engine gives incomplete streaming response when using Gemini LLMs HOT 1
- [Question]: Cannot retrieve relevant documents with faiss HOT 2
- [Bug]: ModuleNotFoundError: No module named 'llama_index.tools' HOT 2
- [Bug]: Cohere in Bedrock with Pinecone HOT 1
- [Bug]: OpenSearch Vector Store have a lot of connection problem after #11513 HOT 2
- [Bug]: I encountered an issue while running the official website process HOT 3
- [Bug]: Redis pipeline with Docstore fails to run in Async HOT 1
- [Bug]: Support for "gpt-4" Model in Llama Index (AzureOpenAIMultiModal) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llama_index.