# Mute Faiss search progress bar

**URL:** <https://discuss.huggingface.co/t/mute-faiss-search-progress-bar/160125>\
**Category:** 🤗Datasets\
**Created:** [June 20, 2025, 8:42pm UTC](https://discuss.huggingface.co/t/mute-faiss-search-progress-bar/160125 "2025-06-20T20:42:34Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [June 21, 2025, 4:39am UTC](https://discuss.huggingface.co/t/mute-faiss-search-progress-bar/160125/4 "2025-06-21T04:39:43Z")

</div>

> Plus I want to keep the map’s tqdm while mute the 1/1 one. Is that possible

I think it’s possible, but without modifying the contents of the library, the only option is to manually silence tqdm temporarily like this… Or `add_faiss_index_from_external_arrays` for better tqdm?  
[https://stackoverflow.com/questions/37091673/silence-tqdms-output-while-running-tests-or-running-the-code-via-cron](https://stackoverflow.com/questions/37091673/silence-tqdms-output-while-running-tests-or-running-the-code-via-cron)

> [@Add\_faiss\_index usage example](https://discuss.huggingface.co/t/add-faiss-index-usage-example/2925):
>
> Hi, I am trying to know how to use Rag/DPR, but first I want to get familiar with faiss usage. I checked the official example in But it seems the snippet code is not self-executable. So I did some modification, aiming to retrieve similar examples in the sst2 dataset with query ‘I am happy’. import datasets from transformers import pipeline embed = pipeline('sentiment-analysis', model="nlptown/bert-base-multilingual-uncased-sentiment") ds = datasets.load\_dataset('glue', 'sst2', split='test')…

[https://stackoverflow.com/questions/62048408/how-to-remove-progressbar-in-tqdm-once-the-iteration-is-complete](https://stackoverflow.com/questions/62048408/how-to-remove-progressbar-in-tqdm-once-the-iteration-is-complete)

> **[Main classes](https://huggingface.co/docs/datasets/package_reference/main_classes#datasets.Dataset.add_faiss_index_from_external_arrays)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

_[View the full topic](https://discuss.huggingface.co/t/mute-faiss-search-progress-bar/160125)._
