Skip to content

A Next.js 14 Chatbot that uses OpenAI's Assistant Retrieval to chat with documents

License

Notifications You must be signed in to change notification settings

talesmousinho/openai-assistant-file-search

Repository files navigation

Next.js 14 OpenAI Assistants Chatbot with File Search

This is a Next.js 14 project using features like App Router and Server Actions. It showcases the use of the OpenAI Assistants API with the File Search Tool enabled, allowing it to interact with any document supported by OpenAI.
This application does not rely on any provisioned vector database or third-party libraries for Retrieval-augmented generation (RAG). Instead, it exclusively utilizes the OpenAI SDK to manage and interact with proprietary documents.

Features

Getting Started

To set up the project locally, follow these steps:

  1. Clone the repository to your local machine.
  2. Install the required dependencies with npm install.
  3. Set up your environment variables in a .env.local file in the root directory of the project. Use the provided .env.example file as a template. You will need to provide your OpenAI API Key.
  4. Run the development server with npm run dev.

Open http://localhost:3000 with your browser to access the app.

Learn More

Not for production

This is a proof of concept and should not be used in production as it is. It does not have any rate limiting or security features enabled.

About

A Next.js 14 Chatbot that uses OpenAI's Assistant Retrieval to chat with documents

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published