---
title: "Discussion on \"Building a Document-based Question Answering System with LangChain, Pinecone, and LLMs like GPT-4 and ChatGPT\" | Hashnode"
description: "Discussion on \"Building a Document-based Question Answering System with LangChain, Pinecone, and LLMs like GPT-4 and ChatGPT\". Build document-based question-answering systems using LangChain, Pinecone, LLMs like GPT-4, and semantic search for precise, context-aware AI solutions."
url: "https://hashnode.com/posts/building-a-document-based-question-answering-system-with-langchain-pinecone-and-llms-like-gpt-4-and-chatgpt/64380ce4f13ae38acfbfe03f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Building a Document-based Question Answering System with LangChain, Pinecone, and LLMs like GPT-4 and ChatGPT](https://blog.futuresmart.ai/building-a-document-based-question-answering-system-with-langchain-pinecone-and-llms-like-gpt-4-and-chatgpt?utm_source=hashnode&utm_medium=feed)

Build document-based question-answering systems using LangChain, Pinecone, LLMs like GPT-4, and semantic search for precise, context-aware AI solutions.

Apr 13, 2023 · 6 min read · blog.futuresmart.ai  
Read the article

-   [#langchain](https://hashnode.com/tag/langchain)
-   [#pinecone](https://hashnode.com/tag/pinecone)
-   [#llm](https://hashnode.com/tag/llm)
-   [#gpt-4](https://hashnode.com/tag/gpt-4)
-   [#chatgpt](https://hashnode.com/tag/chatgpt)

## Written by

[Pradip Nichite](https://hashnode.com/@pnichite)

@pnichite · India

  
[View profile](https://hashnode.com/@pnichite)

Lead Data Scientist | NLP | GPT-3 | GPT-4 | ChatGPT | AWS

🚀 I'm a Top Rated Plus NLP freelancer on Upwork with over $300K in earnings and a 100% Job Success rate. This journey began in 2022 after years of enriching experience in the field of Data Science. 📚 Starting my career in 2013 as a Software Developer focusing on backend and API development, I soon pursued my interest in Data Science by earning my M.Tech in IT from IIIT Bangalore, specializing in Data Science (2016 - 2018). 💼 Upon graduation, I carved out a path in the industry as a Data Scientist at MiQ (2018 - 2020) and later ascended to the role of Lead Data Scientist at Oracle (2020 - 2022). 🌐 Inspired by my freelancing success, I founded FutureSmart AI in September 2022. We provide custom AI solutions for clients using the latest models and techniques in NLP. 🎥 In addition, I run AI Demos, a platform aimed at educating people about the latest AI tools through engaging video demonstrations. 🧰 My technical toolbox encompasses: 🔧 Languages: Python, JavaScript, SQL. 🧪 ML Libraries: PyTorch, Transformers, LangChain. 🔍 Specialties: Semantic Search, Sentence Transformers, Vector Databases. 🖥️ Web Frameworks: FastAPI, Streamlit, Anvil. ☁️ Other: AWS, AWS RDS, MySQL. 🚀 In the fast-evolving landscape of AI, FutureSmart AI and I stand at the forefront, delivering cutting-edge, custom NLP solutions to clients across various industries.

## Responses 4

Markdown supported · ⌘↵ to post

[Kamal Thej](https://hashnode.com/@kamalthej)

[Nov 2, 2023](https://hashnode.com/posts/building-a-document-based-question-answering-system-with-langchain-pinecone-and-llms-like-gpt-4-and-chatgpt/64380ce4f13ae38acfbfe03f/comment/6543f1bb3c255ec1b426a6cb)

AttributeError: module 'langchain.vectorstores.pinecone' has no attribute 'init'

issue\_1: uppercase: Pinecone

issue\_2: lowercase: pinecone

issue\_3: to create virtual environment

unable to resolve this error even after taking help from stack overflow and chatGPT with my knowledge. please help me to complete this project from step number 8, I am facing lot of packages and library issues.

[Nishikant Gurav](https://hashnode.com/@Nishikant19)

[Aug 25, 2023](https://hashnode.com/posts/building-a-document-based-question-answering-system-with-langchain-pinecone-and-llms-like-gpt-4-and-chatgpt/64380ce4f13ae38acfbfe03f/comment/64e89f64417e2d0c8afe6e12)

Awsome

[weize ning](https://hashnode.com/@tukuai)

[Aug 22, 2023](https://hashnode.com/posts/building-a-document-based-question-answering-system-with-langchain-pinecone-and-llms-like-gpt-4-and-chatgpt/64380ce4f13ae38acfbfe03f/comment/64e46d57965997cb76b4f544)

nice

[Ben MacDonald](https://hashnode.com/@bennymac)

[May 4, 2023](https://hashnode.com/posts/building-a-document-based-question-answering-system-with-langchain-pinecone-and-llms-like-gpt-4-and-chatgpt/64380ce4f13ae38acfbfe03f/comment/6453cb86970f6d0644b289de)

thanks so much for this guide! in step 4 'importing necessary libraries:', the third function throws an error for me. do we need to 'import pinecone' if we also have 'from langchain.vectorstores import Pinecone' further below?
