Coder Social home page Coder Social logo

24sumr_edgur-features's Introduction

Edgur Features Repository

This repository stores various features developed for Edgur, aimed at enhancing user experience and functionality.

1. Recommender Algorithm

The recommender algorithm utilizes Pandas Chroma DB and a uniform probability approach to recommend videos based on user interests. Here's how it works:

  • Initialization: The algorithm initializes a queue for user interests, which includes topics ranging from a minimum of four to a maximum of eight.

  • Topic Weight Distribution: Topic weights are distributed among each other to ensure each topic has its space in the partition.

  • Recommendation Generation: Using a random number generator (random.randint), the algorithm selects a video based on the generated number.

  • Interaction Tracking: Upon user interaction with the recommended video, actions such as sharing and looping are observed. If a new tag is encountered, it's added to the user's interest dictionary.

  • Queue Management: Videos are cached in advance to ensure they are readily available when users scroll rapidly, preventing loss from the queue.

  • Chroma DB Integration: Chroma DB handles the vector storage part, utilizing OpenAI's embedding model (specifically OpenAI Text Embedding 3 Small) to convert words into vectors. This integration ensures that the algorithm returns the most relevant video given a specific tag while skipping videos already watched using a watched_videos dictionary.

2. AI Search

AI Search enhances traditional search functionalities by offering custom playlists or mini video courses based on existing videos in the database. Here's how it functions:

  • Query Processing: Using POM engineering, the algorithm extracts key details from user queries to generate a curriculum of potential video titles or beginner test cues.

  • Chroma DB Utilization: Each curriculum bullet is processed through Chroma DB to identify the most relevant video based on vector embeddings, ensuring precise content retrieval.

3. AI Quiz Generation

The AI Quiz feature dynamically generates multiple-choice questions from video transcripts, offering an interactive learning experience. Here's a breakdown:

  • Question Generation: Utilizing OpenAI's API, the feature creates quiz questions directly from the video content.

  • Answer Formatting: The generated questions include four possible answers, with one correct answer and three incorrect answers formatted as '~ Answer 1 ~ Answer 2 ~ Answer 3 ~ Answer 4'.

  • Answer Randomization: Answers are shuffled to ensure a randomized order, enhancing user engagement and learning retention.

4. AI Summary on Timeout

This feature provides concise summaries of videos based on user session duration, offering quick insights into watched content. Key features include:

  • Automatic Summary Generation: Summaries are pre-generated upon video upload, enabling efficient lookup using hash maps or dictionary operations during user sessions.

5. Whisper on the Web

Whisper on the Web introduces a microphone button for text input, enhancing user interaction with question-and-answer cards and search functionalities. It facilitates user engagement by allowing voice-based input for searches.

6. Revenue Calculation for Stripe Payouts

This feature calculates revenue distributions for Stripe Payouts API via Stripe Connect -> content creators based on Edgur's monthly revenue, inspired by models like Spotify's stream shares. It integrates business operations with revenue tracking and vendor payouts, ensuring transparent and efficient financial management.

24sumr_edgur-features's People

Contributors

carlkho-minerva avatar

Watchers

 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.