# Is it possible to add multiple filter conditions in where\_filter dictionary so that it can work with RetrievalQA chain

**URL:** https://forum.weaviate.io/t/is-it-possible-to-add-multiple-filter-conditions-in-where-filter-dictionary-so-that-it-can-work-with-retrievalqa-chain/2563
**Category:** General
**Created:** [May 31, 2024, 6:21am UTC](https://forum.weaviate.io/t/is-it-possible-to-add-multiple-filter-conditions-in-where-filter-dictionary-so-that-it-can-work-with-retrievalqa-chain/2563 "2024-05-31T06:21:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Abhishek\_Joshi](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/abhishek_joshi/32/559_2.png) [@Abhishek\_Joshi](https://forum.weaviate.io/u/Abhishek_Joshi)
#### Post date: [May 31, 2024, 6:21am UTC](https://forum.weaviate.io/t/is-it-possible-to-add-multiple-filter-conditions-in-where-filter-dictionary-so-that-it-can-work-with-retrievalqa-chain/2563/1 "2024-05-31T06:21:05Z")

</div>

#source\_file = “brazil-wikipedia-article-text.pdf”  
source\_file = “netherlands-wikipedia-article-text.pdf”  
where\_filter = {  
“operator”: “Equal”,  
“path”: [“source”],  
“valueText”: source\_file  
}

# we want our retriever to filter the results

retriever = db.as\_retriever(search\_kwargs={“where\_filter”: where\_filter})

qa = RetrievalQA.from\_chain\_type(llm=Cohere(model=“command-nightly”, temperature=0),  
chain\_type=“stuff”,  
retriever=retriever,  
chain\_type\_kwargs=chain\_type\_kwargs,  
return\_source\_documents=True)

also please tell me in which version of weaviate it is possible to do?

---

<div class="post-metadata">

### Author: ![Vindeep\_V](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/vindeep_v/32/2107_2.png) [@Vindeep\_V](https://forum.weaviate.io/u/Vindeep_V)
#### Post date: [August 29, 2024, 6:33am UTC](https://forum.weaviate.io/t/is-it-possible-to-add-multiple-filter-conditions-in-where-filter-dictionary-so-that-it-can-work-with-retrievalqa-chain/2563/2 "2024-08-29T06:33:49Z")

</div>

Any update on this question? We have the same requirement
