Home / Companies / SurrealDB / Blog / August 2024

August 2024 Summaries

3 posts from SurrealDB

Filter
Month: Year:
Post Summaries Back to Blog
Building a Retrieval-Augmented Generation (RAG) application with OpenAI's GPT-3.5 Turbo and SurrealDB involves integrating the generative abilities of language models with external information retrieval to provide contextually relevant and factually grounded responses. RAG helps address the limitations of large language models (LLMs), such as hallucinations and outdated information, by combining vector embeddings of user queries and documents stored in a multi-model database like SurrealDB. This approach allows for the efficient handling of various data types and vector operations within a single system, reducing complexity. The application architecture involves processing user queries through the OpenAI API to generate vector embeddings, which are then matched with relevant documents in SurrealDB using vector search. The retrieved information is used to augment prompts sent back to the LLM, ensuring responses are accurate and grounded in up-to-date data. The tutorial outlines the steps for building this RAG assistant, including setting up the necessary environment, understanding application components, and integrating a frontend interface using FastAPI. The flexibility and multi-model capabilities of SurrealDB, combined with OpenAI's language model, provide a scalable solution for smart, context-aware information retrieval and generation.
Aug 28, 2024 2,272 words in the original blog post.
The tutorial explores building a retrieval-augmented generation (RAG) application using OpenAI's GPT-3.5 Turbo model and SurrealDB, a multi-model database capable of storing vector embeddings for enhanced information retrieval. RAG combines the generative abilities of language models with external data sources to ensure responses are contextually relevant and factually grounded, addressing common issues like accuracy and hallucination in large language models (LLMs). The application captures user queries, processes them into vector embeddings, and uses SurrealDB to perform semantic searches for relevant documents, which are then used to augment prompts for the LLM, ultimately generating accurate answers. The tutorial guides through setting up and testing the RAG assistant, detailing its architecture, key components, and the integration of SurrealDB's capabilities to manage both structured and unstructured data within a single system, thereby reducing complexity. The flexible nature of SurrealDB, complemented by OpenAI's advancements, offers a promising tool for developing intelligent, context-aware applications, with potential for further enhancements using SurrealML.
Aug 28, 2024 1,720 words in the original blog post.
The article delves into the handling and analysis of time series data using SurrealDB, emphasizing its philosophical and technical aspects. Time series data is categorized into events, which are discrete and irregular, and metrics, which are continuous and collected at regular intervals. SurrealDB utilizes ISO8601 timestamps for high precision and provides functionality for converting event data into metrics to gain insights and optimize storage. The article illustrates practical applications with examples like IoT sensor data, highlighting SurrealDB's ability to efficiently store and query data using complex record IDs. It also covers the creation of real-time metrics with pre-computed table views and live queries, as well as custom events for anomaly detection. SurrealDB's advantage lies in its multi-model database capabilities, offering a unified query language and reducing system complexity, although specialized time series databases might provide more advanced features like custom data retention.
Aug 20, 2024 2,263 words in the original blog post.