Home / Companies / SingleStore / Blog / February 2024

February 2024 Summaries

15 posts from SingleStore

Filter
Month: Year:
Post Summaries Back to Blog
The world of AI has seen significant advancements, particularly in the realm of Large Language Models (LLMs). These models enable various tasks, such as semantic search and text classification, with enhanced accuracy and efficiency. Vector embeddings are a crucial aspect of LLMs, capturing the essence of data in a continuous vector space. They preserve semantic relationships between objects, making it possible to perform complex computations more efficiently. Various techniques exist for generating these embeddings, including Word2Vec, GloVe, BERT, and transformer models. These tools can be used to create text embeddings using platforms like SingleStore Notebooks and embedding models from OpenAI, Cohere, and HuggingFace. Once created, vector embeddings can be stored in databases, enabling applications such as indexed approximate-nearest-neighbor search. The exploration of embeddings continues to unveil innovative ways to capture data complexities, promising broader application and effectiveness in machine learning and data science.
Feb 29, 2024 1,167 words in the original blog post.
SingleStore has made significant improvements to its ability to handle JSON data, particularly in cases of sparse JSON, which was a challenge for customers like Heap due to performance issues with data ingest and query performance. The new encoding engine provides fast seeks and supports a wider range of JSON data efficiently, addressing the issues of schema inference safeguards and compression challenges that were causing OOM errors during ingestion and scan operations. By optimizing memory allocation and introducing an intermediate interface to store NULLs in run-length format, SingleStore has achieved reliable and efficient handling of sparse JSON data, making it more user-friendly for developers generating JSON data in their applications.
Feb 26, 2024 1,562 words in the original blog post.
SingleStore has released support for indexed approximate-nearest-neighbor (ANN) vector search, allowing users to combine full-text search and SQL capabilities in a single query. By joining results from both searches with a full outer join, users can produce a final result that combines the scores of both searches, re-ranking them accordingly. This enables powerful hybrid search that leverages the strengths of both full-text search and semantic vector search. The company has created a dataset to simulate vector-based semantic search over Wikipedia articles, demonstrating the capabilities of SingleStore's hybrid search feature.
Feb 22, 2024 526 words in the original blog post.
SingleStore is a data platform that enables high throughput transactional data, low latency analytics, and context from real-time vector data, scaling infinitely with built-in horizontal scalability. It can handle hundreds of concurrent users running complex queries with single-digit millisecond query times, making it ideal for speed, scale, and simplicity in real-time relational database management systems. Explo is an embedded analytics provider focused on end-user customizability, offering a low-code solution to build analytics experiences that range from static dashboards to self-service report builders, saving time building charts from scratch and optimizing analytics. Connecting SingleStore to Explo enables the creation of powerful engine for ingesting and displaying large amounts of data in real-time — creating powerful analytics insights for end users. With these tools combined, the possibilities are endless for enabling real-time analytics experiences for customers, making them a strong option for various industries such as manufacturing, healthcare, retail, telecommunications, finance, energy, transportation, and logistics, where real-time embedded analytics can provide immediate intervention and correct issues in seconds.
Feb 21, 2024 1,464 words in the original blog post.
Kafka is a distributed data store optimized for ingesting and processing streaming data in real time. It's commonly used as a source for real-time ingestion use cases where the target is one or more relational databases that act as a ODS, data mart, or data warehouse for real-time analytics. Oracle and SingleStore are two popular database options for integrating with Kafka. Oracle integration with Kafka involves using GoldenGate to extract data from Kafka and replicate it to Oracle, which comes with high costs, points of failure, operations cost, and infrastructure overhead. In contrast, SingleStore has native integrations with Kafka, allowing for real-time ingestion without the need for ETL/CDC tools, reducing TCO, points of failure, operational overhead, and complexity. SingleStore Pipelines enable efficient data ingestion from various external sources, including Kafka, in a simple and scalable architecture.
Feb 20, 2024 953 words in the original blog post.
SingleStore Kai is now generally available (GA) on top of SingleStore 8.5, enabling MongoDB client applications to use SingleStore by deeply integrating the BSON data type with the engine. This integration achieves better compatibility and performance for query patterns used by MongoDB client applications. The new feature supports additional leaf data types, ordered maps, and binary encoding, while also addressing limitations such as top-level values. Using SingleStore Kai, tables created with the format use the BSON format by default, allowing for fast insertion and retrieval of data. The feature optimizes the entire lifecycle of BSON data in SingleStore, including validation, storage, and reconstruction, enabling predictably low-latency applications and accelerated analytics. With ROWSTORE tables, data is kept in memory in BSON format, ready to send back to the client immediately, while Universal Storage tables compress data after loading a million rows, resulting in significant compression ratios and economized storage usage. SingleStore Kai is integrated into SingleStore Helios cloud, offering a free Shared Tier with easy setup, migration, and query execution directly in the cloud portal.
Feb 16, 2024 1,338 words in the original blog post.
SingleStore is a fast database that supports real-time ingestion, with highly parallel transactions and queries all at once. To improve its Portal UI, the company accelerated its Cloud Portal UI project to minimize initial loading times. The primary goal was to reduce the time it takes for the initial query to fetch required data after user authentication. By applying the "Golden Rule of Asking Only What is Required," they optimized GraphQL queries and reduced bulky queries that took forever to load. They also split their `getInitialData` query into two separate queries, one for a single organization and another for all organizations, to improve performance without blocking the initial render. Additionally, they fixed slowness in their "Create Workspace" form by optimizing workspaces data fetching. They created a custom hook to replace Apollo's `useQuery` hook, which manages states properly and internally uses the `useQuery` hook. The company also measured progress with tools like Lighthouse and Chrome developer tools, but realized the need for infrastructure changes such as compressing frontend assets, improving cache-miss state, and setting up a separate chunk for React vendors. They implemented lazy loading, treeshaking Lodash, and optimized their app bundle size by reducing unnecessary imports and using tree-shakeable alternatives. By applying these optimizations, they achieved significant improvements in core performance metrics like First Contentful Paint.
Feb 15, 2024 1,949 words in the original blog post.
The generative AI revolution has made significant progress in the past year, mostly in the release of Large Language Models (LLMs), which can produce advanced outputs but also require careful crafting of meaningful instructions to achieve desired results. Prompt engineering is a crucial step in talking with LLMs, involving understanding the model's capabilities and limitations, crafting clear and concise prompts, and iteratively testing and refining them based on the model's responses. Various techniques such as zero-shot prompting, one-shot prompting, few-shot prompting, chain-of-thought prompts, contextual augmentation, meta-prompts, prompt combinations, and human-in-the-loop can be employed to tap into an endless array of possibilities in generating creative output or producing accurate results. Effective prompt engineering requires a blend of technical and soft skills including communication, collaboration, creative thinking, basic AI + NLP knowledge, writing styles, programming knowledge, and data analysis, enabling users to craft prompts that enhance the performance and relevance of AI responses, leading to more intuitive and efficient human-AI collaborations.
Feb 14, 2024 1,471 words in the original blog post.
Large Language Models (LLMs) are advanced artificial intelligence systems designed to understand and generate natural language text, trained on extensive datasets of text from the internet. They can learn language patterns, grammar, and a wide range of information, generating coherent and contextually relevant text based on input received. However, LLMs often struggle with contextual understanding, misinterpreting prompts or missing crucial information due to their vast training data lacking domain-specific expertise. Fine-tuning overcomes these limitations by specializing LLMs for specific tasks through targeted data and training, unlocking their true potential for accurate and reliable applications. Various fine-tuning techniques exist, including full model fine-tuning, feature-based fine-tuning, parameter-efficient fine-tuning, and RLHF (Reinforcement Learning from Human Feedback) fine-tuning. These techniques cater to specific scenarios and offer unique advantages, making LLMs shine in real-world applications.
Feb 13, 2024 1,280 words in the original blog post.
The text discusses the use of SingleStore, a real-time, distributed SQL database built for AI, to detect and prevent telecom anomalies such as frauds. It explains how SingleStore can be used to store and search vector data, which is useful for detecting anomalies in telecom CDR (Call Detail Record) data. The text also describes how to set up the SingleStore database environment, create a pipeline to ingest records into the table, and write a Python program to generate vector embeddings, mark anomalies for different frauds, and visualize the results over time using Plotly. The stored procedure "detectanomaly" is used to detect and mark anomalies in CDR records based on predefined vectors representing specific types of fraud. The threshold value used in the stored procedure can be adjusted according to specific requirements.
Feb 09, 2024 1,442 words in the original blog post.
You can stream your AWS S3 access logs into a SingleStore table using a pipeline, allowing you to easily analyze and query the data in real-time. To create the pipeline, first create a table with the desired columns, then load the data from S3 using a pipeline configuration that specifies the region, credentials, and fields to be loaded. The pipeline continuously loads new data as it appears in S3, making it easy to monitor and analyze your access logs. Once the pipeline is set up, you can run batch queries on the loaded data, such as selecting the first few thousand files or checking the status of recent batches. Additionally, you can use persisted columns to optimize query execution and avoid unnecessary computations by specifying a regex pattern for the column, allowing SingleStore to skip segments that don't match the pattern and improve performance.
Feb 08, 2024 622 words in the original blog post.
SingleStore is a high-performance, distributed database designed to support real-time analytics, AI, and operational workloads. It combines the capabilities of relational databases with the speed and scalability of NoSQL databases, enabling rapid data ingestion, low-latency queries, and easy integration with popular BI tools. SingleStore provides several advantages over traditional databases like Oracle, including real-time analytics, scalability, hybrid workloads, simplified management, cost efficiency, and seamless data replication from legacy data stores to SingleStore. CData Sync is a powerful tool designed to facilitate seamless data movement between various sources and destinations, offering a flexible and efficient solution for data integration needs. With its user-friendly interface and robust features, CData Sync makes it easy to accelerate migration projects from Oracle to SingleStore, providing real-time integrations from hundreds of data sources to SingleStore to support high-performance transactional and analytical workloads.
Feb 08, 2024 743 words in the original blog post.
We recently refactored an internal monitoring service to run entirely on SingleStore Job Service, which allows us to aggregate data from over 50 SingleStore deployments and collaborate in a familiar notebook environment. We were able to consolidate data from multiple servers into a single database for analytical queries, eliminating the need for separate services and data integration tools. This approach brings several advantages, including quick development within a collaborative and familiar environment with SQL and Python, consistent access to source databases using shared credentials, and flexibility in incorporating data transformation logic in Python. With the data consolidated in a single SingleStore database, we can now utilize it by individuals to run SQL queries and develop analytics, and plan on building dashboards and analytics right within SingleStore.
Feb 07, 2024 456 words in the original blog post.
SingleStore offers a powerful tool called Visual Profile that provides details like execution time, row counts and memory usage of different steps in the query plan, allowing users to identify bottlenecks and optimize performance. The tool is highly beneficial for performance tuning and can help customers accelerate their time-to-insights while decreasing the size, complexity and cost of their data architecture. SingleStore unifies transactions and analytics in a single engine to drive low-latency access to large datasets, simplifying the development of fast, modern enterprise applications. Visual Profile can be collected through the SQL Editor or Studio, and also manually through the command line, allowing users to get more debug information and analyze their query's execution plan. The tool provides an easy-to-use UI to identify and troubleshoot query performance issues, making it a valuable resource for developers and architects working with SingleStore.
Feb 06, 2024 757 words in the original blog post.
Full-text search is a powerful technique that analyzes the entire text of documents and understands the context of your query, allowing it to find relevant results even if the query doesn't use exact keywords. Vector search on the other hand is an advanced search technique that retrieves contextually relevant information by understanding machine and human language, making it especially useful in applications where information search needs a human touch. A hybrid approach combining both full-text and vector search emerges as the true champion, delivering highly relevant results even when precise phrasing isn't used, ensuring accuracy meets serendipity. SingleStore supports this hybrid search, enabling developers to craft rich AI and analytical applications that harness the combined strengths of vector search and full-text search, unlocking the full potential of search and delivering truly meaningful experiences.
Feb 02, 2024 1,839 words in the original blog post.