Coder Social home page Coder Social logo

alan10332000 / coscup-session-openai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yukaii/coscup-session-openai

0.0 0.0 0.0 1.23 MB

Home Page: https://coscup-openai-session.vercel.app

JavaScript 12.49% TypeScript 75.75% PLpgSQL 1.76% SCSS 5.94% Python 4.07%

coscup-session-openai's Introduction

Coscup x OpenAI 議程搜尋系統

這是今年(2023) Coscup 的議程搜尋系統,結合了 OpenAI 的 Embedding API、Chat Completion API,Supabase 的 pgvector。

原本是要拿來投今年的閃電講,不過沒有抽到,就不用做簡報了 XD

那大家就直接看扣看 Demo 吧

screenshot

關於實作

  • 丟 COSCUP 的 session.json 給 Code Interpreter 分析,產生 Database SQL Schema,以及把 JSON 轉成 .sql,可以直接匯入資料庫的程式 (看 [session-data] 資料夾)
  • 然後照著 Supabase 這篇文 Storing OpenAI embeddings in Postgres with pgvector 直接改
  • 本來要用 Supabase Functions 來弄,但因為 Timeout 問題,以及前端也需要點魔法,所以就搬到了 Vercel
  • 前端用 Shadcn UI/Tailwind/Next.js

感想

  • 直接回傳 Embedding 的結果還比較好,但因為想蹭一下 AI,還是做了後面給 GPT 做處理的部分

License

MIT

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.