DEV Community

Cover image for Introducing KnowlEdge: Collaborative AI-Powered PDF Chat Platform.
Rajat Mondal
Rajat Mondal

Posted on

Introducing KnowlEdge: Collaborative AI-Powered PDF Chat Platform.

Introduction

KnowlEdge isn't just another platform; it's your gateway to collaborative knowledge sharing. No more chatting with one PDF at a time or drowning in a sea of files, hoping for miraculous results. With KnowlEdge, you create chat rooms, upload files, and let the conversation flow. Let's dive in and uncover the magic.

If you want to try it out: Live Link

Problem Statement

There are many products available on this topic but you have to chat with One PDF at a time, to solve this I built KnowlEdge Bot, So people can chat with multiple pdf with the help of AI Powered Bot, without hallucinating answer.

Tech Stack

  • React.js + Vite (Frontend)
  • Nest.js (Backend API)
  • Prisma (ORM)
  • Supabase (Storage + Database)
  • ChromaDB (vector Store)
  • langchain js (llm wrapper)

Now without further ado let's see how you can use this.

1.Creating Account

This is a pretty easy step, you have to create your account with your details and then sign in with it.

Create your account:

Singup Page

Sign in:

Signin Page

Creating chat rooms:

Once you sign in you will be inside dashboard, you have to go to the chatroom page from the sidebar and you will see an empty page with an add button.

Creating Chat Room Modal

Then by clicking on it, you can create new Chat Rooms:

Chat Room

This is your newly created chat room and the yellow patch means the chat room is not ready (as we do not have any files uploaded to it)

New Chat Room

So we click on the Edit Room button and upload files to it, after that it would look something like it:

Before Uploading Files:

Before

After Uploading Files:

After

** Did you Notice the change in status on the top right section? ;)

Now after that when you come back to the chat room page, you will see the yellow patch is changed to a green patch, which means we can start chatting

Active Chat Room

Ok now click on Start chatting and let's see what happens:

Chat Page Error

Oh no, seems like we have to set our own API key, that's a bummer, but if someone is willing to pay for the product, let me know, and I will add an API key for free.

Coming back, you have to go to the settings tab and set your open ai API key and then come back to chat rooms and click on start chatting again and you will see the results:

Settings

Now when you come back to the chat page it will show you something like this:

Processing

This means it is processing your files and creating some sample questions with a Gist of the files uploaded, and almost forgot about it, it also gives you the context like from where it is getting the results, In this context I uploaded a children short story about a giraffe whose name is Ginger (That's too much context), see the file here: File Link

Initial Chat

This is the chat page with the sample questions and Gist of the files, we have two tabs to help users toggle between files and chat easily, from there they can preview the files.

File Preview

Now you can start chatting with the files, here are the examples:

First Chat

Oh by the way, it can also remember the chat history and context from previous conversations:

Chat History Example

So now after you have done all the setup, you can invite others onto your organization, they will have access to chat rooms (only for chatting and preview files, not for editing).

You can invite others from user management page:

Image description

Image description

Once you have invited users, their cards will appear next to you:

Image description

And they will receive an email:

Image description

If they click on the link they will come to this page:

Image description

From here they can update their basic profile. If they do, the N/A in the user card will be updated like this:

Image description

Also, the new user can sign in with the account and they will see the dashboard like this:

Image description

Now the user can also start chatting.

So with this, we have covered everyth..., Ummmm almost everything. Let's talk about the restrictions:

Restrictions

With a FREE/SOLO account

  • You can only open 2 chat rooms.
  • You can upload 2 files per chat room.
  • Max 5 MB pdf files can be uploaded.
  • Chat history is not saved, so whenever you open the chat page, it's a fresh session.

But there are no restrictions on chat or the number of people you are inviting.

Share your views in the comment below, also let me know if you want to a new feature.

Top comments (0)