Skip to content

Project Lingception chatbot: chat with a PDF using LangChain and Pinecone. The outcome of this project is a paper discussing evaluation and comparison with expert answers and ChatGPT in terms of reasoning and hallucinations.

Notifications You must be signed in to change notification settings

3lle4/Lingception

 
 

Repository files navigation

Lingception: Using Natural Language Engineering to Explain Natural Language Engineering.

This is the bot for the project "Lingception" by Ellena Nett and Annika Traßl-Wilterius. It investigates to what extent contextualization of ChatGPT with a PDF improves the reliability of answers to questions about the given context. The architecture of the bot is based on the work of mayooear and this repo gpt4-pdf-chatbot-langchain. (Frontend of this repo is inspired by langchain-chat-nextjs)

The setup describes the steps to start the bot locally and connect to already used API. The complete setup incl. ingestion of a PDF can be found in the origin repo.

Set up the bot

  1. Install packages

First run npm install yarn -g to install yarn globally.

Then run:

yarn install

After installation, there should be a node_modules folder.

  1. Set up the .env file
  • Copy .env.example into .env The .env file should look like this:
OPENAI_API_KEY=

PINECONE_API_KEY=
PINECONE_ENVIRONMENT=

PINECONE_INDEX_NAME=

  • enter the APIs
  • enter pinecone parameter

Run the app

Run the app npm run dev to launch the local dev environment, and then type a NLP question in the chat interface.

About

Project Lingception chatbot: chat with a PDF using LangChain and Pinecone. The outcome of this project is a paper discussing evaluation and comparison with expert answers and ChatGPT in terms of reasoning and hallucinations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 93.3%
  • TypeScript 5.3%
  • CSS 1.3%
  • JavaScript 0.1%