Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT NachrichtenPeloton has made a foldable (treadmill)(22.09.2026 um 13:00 Uhr)
IT NachrichtenPeloton has made a foldable (treadmill)(22.09.2026 um 13:00 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

RAG Chatbot - MoviesGPT

What is RAG? Retrieval-Augmented Generation or RAG is when you change the output of a Large Language Model (LLM) by providing the model more context alongside a user’s input. That way, the model can use its ability to generate text along …

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




What is RAG?



Retrieval-Augmented Generation or RAG is when you change the output of a Large Language Model (LLM) by providing the model more context alongside a user’s input. That way, the model can use its ability to generate text along with extra context to provide accurate answers to users’ questions






Why is RAG useful?




  • Cost Effective

  • Models have cut-off dates, after which knowledge isn’t updated.

  • Covers up for information that does not exist






What is Vector Embedding?



A popular technique to represent information in a format that algorithms, especially deep learning models, can easily process. This ‘information’ can be text, pictures, video or audio.









Step-by-step workflow of MoviesGPT






Data Collection (Wikipedia Scraping)




  • The project uses Puppeteer (via LangChain) to scrape Wikipedia pages containing lists of movies in various Indian languages for the year 2025.

  • Each Wikipedia page’s content is fetched and cleaned of HTML tags.






Text Chunking




  • The scraped content is split into manageable chunks using a text splitter (RecursiveCharacterTextSplitter).

  • This ensures each chunk is of optimal size for embedding and storage.






Embedding Generation




  • Each text chunk is sent to NVIDIA’s embedding API (nvidia/nv-embedqa-e5-v5 model) to generate a high-dimensional vector representation.

  • These embeddings capture the semantic meaning of each chunk.






Database Storage (AstraDB)




  • The vector embeddings and their corresponding text chunks are stored in AstraDB, a vector database.

  • The database is set up to support efficient similarity search using the chosen metric (e.g., dot product).






User Interaction (Frontend)




  • Users interact with a chat interface built with Next.js.

  • When a user submits a question, it is sent to the backend API.






Query Embedding & Context Retrieval




  • The backend generates an embedding for the user’s question using the same NVIDIA model.

  • It then queries AstraDB for the most similar text chunks (context) based on vector similarity to the question embedding.






Prompt Construction




  • The retrieved context is formatted and combined with the user’s question to create a system prompt.

  • This prompt instructs the AI to use the provided context to answer the question, but to fall back on its own knowledge if needed.






AI Response Generation




  • The prompt and chat history are sent to OpenRouter’s chat API (using a model like deepseek/deepseek-chat).

  • The AI generates a streaming response, which is sent back to the frontend in real time.






User Receives Answer




  • The user sees the AI’s answer in the chat interface, formatted in markdown for readability.









Workflow Diagram (Textual)



Wikipedia Pages



[Scraping & Cleaning]



[Text Chunking]



[Embedding Generation]



[AstraDB Storage]



(User asks a question)



[Question Embedding]



[Vector Search in AstraDB]



[Relevant Context Retrieved]



[Prompt Construction]



[OpenRouter AI Chat Completion]



[Streaming Response to User]









Summary





  • Backend: Handles scraping, embedding, storage, and retrieval.


  • Frontend: Provides a chat interface for users using NextJS via TypeScript.


  • AI Models: NVIDIA for embeddings, OpenRouter for chat.


  • Database: AstraDB for vector search and storage.



This workflow ensures that MoviesGPT can answer movie-related questions with up-to-date, contextually relevant information, providing a seamless and intelligent user experience.









Links



GitHub: GitHub

Demo: Demo

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten RAG Chatbot - MoviesGPT

Thematisch verwandte Begriffe: Chatbot, MoviesGPT · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94493 | A vulnerability was detected in Gigatech PDV5701 1.0.31_240305_112640. T…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick