Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions bootstraprag/templates/qdrant/multimodal_search/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ this is a bootstrap project using bootstrap-rag cli tool. This project assume yo
├── main.py
├── readme.md
├── requirements.txt
└── measure_retrieval_quality.py
└── multimodal_search.py
```
- docker-compose.yml: if your machine does not have qdrant installed don't worry run this `docker-compose-dev.yml` in setups folder
- `docker-compose -f docker-compose-dev.yml up -d`
- requirements.txt: this file has all the dependencies that a project need
- measure_retrieval_quality.py: the core logic for retrieval evaluation is present in this file
- multimodal_search.py: the core logic for retrieval evaluation is present in this file
- main.py: this is the driver code to test.

### How to bring in your own custom logics
- open `measure_retrieval_quality.py` and modify your `_upset_and_index` and `compute_avg_precision_at_k` functions.
- open `multimodal_search.py` and modify your `search_image_by_text`, `search_text_by_image` and `_create_and_insert` functions.

or

- create a `new_search_file.py` and extend it from `measure_retrieval_quality.py` then override the base functionality in the new one.


- create a `new_search_file.py` and extend it from `multimodal_search.py` then override the base functionality in the new one.