Git Product home page Git Product logo

phind-clone's Introduction

Phind (Clone)

A simple phind clone built as a part of a Full Stack Assesment. The app revolves around sending queries to the vector database and storing the queries and responses in a database.

Tech Stack

1. NextJS + FastAPI

NextJS is used for the frontend. Here the FastAPI servers are used as Python serverless functions in NextJS.

2. ShadCN and Tailwind CSS

ShadCN is a component library, and Tailwind CSS for seemless reponsive design.

3. Qdrant, OpenAI, MongoDB

The vector database used is Qdrant, and OpenAI is used for embeddings, MongoDB is used to store the conversations

Setup and Installation

To set up this project locally, follow these steps:

  1. Cloning the repository to your local machine
  git clone https://github.com/Rahul-Baradol/phind-clone
  1. Go to the folder named phind-clone and install the dependencies:
  cd phind-clone
  npm install
  1. Run the development server:
  npm run dev

Here the Nextjs and FastAPI servers run concurrently. When npm run dev is run, necessary python packages will also be installed. The required python packages could be found in requirements.txt

Also make sure to rename the file .env.template to .env.local and give the following api keys QDRANT_CLOUD_ENDPOINT QDRANT_API_KEY OPENAI_API_KEY MONGODB_URI

Then hit the endpoint http://localhost:3000/api/status, to confirm if the FastAPI Server is up and running. The expected response is

{
  "status": "alive"
}

Thereafter you can go to url http://localhost:3000 to use the actual application.

Demo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.