logo
Published on

PersonAI : RAG based AI application

Authors
personai-banner

Introduction

PersonAI is an AI based full stack next.js application using python and langchain for chatbot and Spring Boot as micro service architechture to store data. Application lets you integrate your data from different platforms such as Confluence, JIRA, PDFs, Word docs, URLs, etc. and use it to create chatbots. The application also has a chatbot builder that lets you create chat

Tech Stack used

Nextjs To build the frontend using Next.Js 14 with app directory and bleeding edge features using tailwindcss, shadcn ui and zustand TypeScript To ensure type safety and code quality Spring Boot To build the backend REST API for authentication, storing chat history, storing integration data and building micro services Python Multiple Open Source LLMs such as Llama2, mistral 7b are currently supported for chatbot that works on RAG (Retrieval Augmented Generation) model.

Demonstration

Features

Let's dive into the new features and improvements In PersonAI.

Chatbot

PersonAI provides chatbots using Llama2 or Mistral 7b modesl to answer queries that the end user asks based on the data that you integrate from different sources. Data integrated by each user is stored in the database and security is ensured using JWT tokens so that integrated data of one user is not exposed to other users.

Integrations

Confluence Integration

Confluence is a popular collaboration tool used by many companies. It provides a centralized place to store and share information. Due to its popularity, it is a good candidate for integration, allowing you to create chatbots that can answer questions from your documentation. You will need to create a Confluence account and generate an API token. You can find the steps to generate the API token here. You will need to provide the confluence space name as well as the API token to the chatbot builder.

URL Integration

You can integrate URLs to your chatbot. The chatbot will fetch the content from the URL and use it to answer questions.

File Integration

You can integrate files such as PDFs, Word docs, Code files, Excels, PPTs, etc. to your chatbot. The chatbot will fetch the content from the file and use it to answer questions.

Github / Bitbucket Integration

You can integrate your Github or Bitbucket repositories to your chatbot. The chatbot will fetch the content from the repository and use it to answer questions. You will need to create a git account in github or bitbucket and generate an API token. You can find the steps to generate the API token here. You will need to provide the github/ bitbucket repo name along with the API token to the chatbot builder.

Conclusion

To summarize PersonAI is a full stack RAG based AI application that lets you build chatbots using your data. It is a good candidate for integration with Confluence, JIRA, PDFs, Word docs, URLs, etc.

Support

Support this blog by giving a star on Github, sharing your own blog and giving a shoutout on Twitter or be a project sponsor.

Licence

MIT © Pallav Gupta