Skip to content

AyaanZaveri/cognite

Repository files navigation

Cognite 🔥

The open-source alternative to OpenAI's GPT Store built w/ Next.js and LangChain.js

👇 Screenshots

Homepage Chat Create

🤔 What is it?

It's a fast and simple way to share and create chatbots with external knowledge such as a website or a document. This can be helpful for things like creating bots for knowing specific things, such as a research paper, a book, etc.

🥖 How do I use it?

  • To find chatbots just start typing on the search bar on the homepage and find what you need
  • To create a chatbot, head to the create page. Put in a name and give it some knowledge (website or PDF as of right now)

🌎 How does it work?

🦜 LangChain.js for the AI backend such as the embeddings and chat
Next Next.js as the full-stack framework
Prisma Prisma to interact with the database in an easier way
Tailwind shadcn-ui + TailwindCSS as the UI framework and CSS

Embeddings: It uses sentence-transformers/all-MiniLM-L6-v2 to create embeddings for the knowledge provided.
LLM: It currently uses mistralai/Mixtral-8x7B-Instruct-v0.1, but you can use whatever LangChain currently supports

🏡 Run Locally

  1. Clone the repo git clone https://github.com/AyaanZaveri/cognite && cd cognite
  2. Install bun (if not installed already) npm install -g bun
  3. Run bun i to install packages
  4. Edit the env variables, if you want to use different models, check out LangChain's supported list
  5. Run bun dev to run the code
  6. Start tinkering 🚀!

License

Licensed under the AGPL v3 license.