GithubHelp home page GithubHelp logo

gstarwd / yc-idea-matcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neondatabase/yc-idea-matcher

0.0 0.0 0.0 1.52 MB

Submit your idea and get a list of similar ideas that YCombinator has invested in in the past.

Home Page: https://neon.tech/ycmatcher

JavaScript 10.91% TypeScript 87.59% CSS 1.49%

yc-idea-matcher's Introduction

YC idea matcher

Screenshot of the app UI

This project allows you Submit your idea and get a list of similar ideas that YCombinator has invested in before.

The project is built using the following technologies:

How the app works

You will find a script called generate-embeddings.ts located in the root directory of this project. After running npm run generate-embeddings, the script does the following:

  1. It creates the database schema and installs the pg_embedding extension
  2. It goes through the YCombinator API 'https://api.ycombinator.com/v0.1/companies?page=1' and gets all the companies
  3. For each company it generates embeddings using the long description and then stores the company data in the database.

Some companies don't have a long description, so we needed to manually remove those from the database by running delete from companies WHERE embedding = ARRAY[]::real[];

The app itself is a Next.js app with an API route located at /api/idea. Whenever a user submits an idea, the following happens:

  1. The idea is sent to the OpenAI API to generate an embedding
  2. We then use pg_embedding to retrieve the top 3 most similar ideas

yc-idea-matcher's People

Contributors

m-abdelwahab avatar

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.