# Can we build a QNA functionality for a csv on knime using gpt4all or openAI connector?

**URL:** <https://forum.knime.com/t/can-we-build-a-qna-functionality-for-a-csv-on-knime-using-gpt4all-or-openai-connector/86964>\
**Category:** KNIME Analytics Platform\
**Created:** [March 9, 2025, 7:39am UTC](https://forum.knime.com/t/can-we-build-a-qna-functionality-for-a-csv-on-knime-using-gpt4all-or-openai-connector/86964 "2025-03-09T07:39:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pranjal\_m](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/p/b3f665/32.png) [@Pranjal\_m](https://forum.knime.com/u/Pranjal_m)\
**Post date:** [March 9, 2025, 7:39am UTC](https://forum.knime.com/t/can-we-build-a-qna-functionality-for-a-csv-on-knime-using-gpt4all-or-openai-connector/86964/1 "2025-03-09T07:39:12Z")

</div>

I am trying to build a knime workflow where we can plug a csv or database reader to GPT4all connector in a way that it uses this file as the local database for answering questions. Is there a way we can do this?

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [March 9, 2025, 7:56am UTC](https://forum.knime.com/t/can-we-build-a-qna-functionality-for-a-csv-on-knime-using-gpt4all-or-openai-connector/86964/2 "2025-03-09T07:56:10Z")

</div>

@Pranjal_m here is one example using knime 4.0 and csv. You can also check the linked articles there

> **[Ollama - Chat with your PDF or Log Files - create and use a local vector store...](https://hub.knime.com/mlauber71/spaces/LLM_Space/Ollama%20-%20Chat%20with%20your%20PDF%20and%20Llama3~5s39Yth4NbkUIj0q/current-state)**
>
> Ollama - Chat with your PDF or Log Files - create and use a local vector store To keep up with the fast pace of local LLMs I try to use more generic nodes and …

This example uses gpt4all and the newer nodes. Here it parses pdfs but you could feed the lines of CSV files.

> **[GPT4All KNIME - Creating Vector Store – mlauber71](https://hub.knime.com/mlauber71/spaces/LLM_Space/GPT4All%20KNIME%20-%20Creating%20Vector%20Store~ZNq2zeGv-zbIKamg/current-state)**
>
> Create a Vector Store with GPT4All from a PDF and query it with local GPT4All instance you need GPT4All installed and ready to run on your machine tested it wi…

Depending on the number of documents you provide this will be the information that will be drawn from the vector store so matching your question so there LLM will have this as additional information not the whole CSV.

This approach tries to [employ agents](https://medium.com/p/a7fecb042915) to scan a database and come up with SQL code that can then answer the question based on the whole DB. Challenge is to get the SQL dialect right.

> **[KNIME and CrewAI - use an AI-Agent system to scan your CSV files and let...](https://hub.knime.com/mlauber71/spaces/LLM_Space/CrewAI%20-%20AI-Agents%20scan%20your%20CSVs%20and%20write%20SQL%20using%20Ollama~-FDaFVvOIi_jTTDr/current-state)**
>
> KNIME and CrewAI - use an AI-Agent system to scan your CSV files and let Ollama / Llama3 write the SQL code The agents will 'discuss' among themselvesm use the…

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 7, 2025, 7:56am UTC](https://forum.knime.com/t/can-we-build-a-qna-functionality-for-a-csv-on-knime-using-gpt4all-or-openai-connector/86964/3 "2025-06-07T07:56:40Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
