# Make chatbot aware of filenames

**URL:** <https://forum.weaviate.io/t/make-chatbot-aware-of-filenames/148>\
**Category:** General\
**Created:** [June 8, 2023, 4:50pm UTC](https://forum.weaviate.io/t/make-chatbot-aware-of-filenames/148 "2023-06-08T16:50:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre\_De\_Sainte\_Aga](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/pierre_de_sainte_aga/32/132_2.png) [@Pierre\_De\_Sainte\_Aga](https://forum.weaviate.io/u/Pierre_De_Sainte_Aga)\
**Post date:** [June 8, 2023, 4:50pm UTC](https://forum.weaviate.io/t/make-chatbot-aware-of-filenames/148/1 "2023-06-08T16:50:44Z")

</div>

Hello,  
I know how to filter on some documents using `WeaviateWithSearchKwargs(..., search_kwargs=...)`  
But my chatbot do not “know” the filenames of the documents involved. (i.e., if I ask "_what are the document names ?_ ", the chat doesn’t know.  
Is there any way to make the chat “aware” of the filenames \<=\> vector/chunk links?  
Thanks a lot !

---

<div class="post-metadata">

**Author:** ![felixthekraut](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/felixthekraut/32/134_2.png) [@felixthekraut](https://forum.weaviate.io/u/felixthekraut)\
**Post date:** [June 8, 2023, 6:28pm UTC](https://forum.weaviate.io/t/make-chatbot-aware-of-filenames/148/2 "2023-06-08T18:28:31Z")

</div>

Do you have the filenames as part of the schema? If so you could pass the filename property along to your `generate`.

---

<div class="post-metadata">

**Author:** ![jphwang](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/jphwang/32/38_2.png) [@jphwang](https://forum.weaviate.io/u/jphwang)\
**Post date:** [June 12, 2023, 9:00pm UTC](https://forum.weaviate.io/t/make-chatbot-aware-of-filenames/148/3 "2023-06-12T21:00:36Z")

</div>

Hey @Pierre_De_Sainte_Aga - Is this a LangChain class? I can’t help with that as my knowledge is limited, but in general, yeah I agree with @felixthekraut. In the Weaviate generative search you can pass any parameters to the function, which will “show” the filename to the chatbot.
