August 2024 Summaries
8 posts from Tiger Data
Filter
Month:
Year:
Post Summaries
Back to Blog
The annual State of PostgreSQL Survey for 2024 is now open, aiming to capture the collective experiences of its users. In 2023, 51% of respondents reported using PostgreSQL more than in previous years. The survey results and anonymized raw data will be published in a report available for free. The report provides valuable insights into the PostgreSQL ecosystem and helps understand how to improve it collectively. The survey is open until September 30th, and participants are encouraged to share their experiences with PostgreSQL.
Aug 30, 2024
813 words in the original blog post.
This article explores semantic search with filters and demonstrates how you can implement it using pgvector and JavaScript. Semantic search focuses on understanding the meaning and intent behind a query, leading to more relevant and precise search results. Filters enhance the precision and relevance of semantic search by helping refine search results based on specific attributes. The article also discusses the role of PostgreSQL in implementing filtered semantic search with pgvector and JavaScript/Typescript.
Aug 29, 2024
2,561 words in the original blog post.
In this tutorial, we built a fully local Retrieval-augmented Generation (RAG) application using PostgreSQL, Mistral, and Ollama to ensure data privacy and security. RAG combines information retrieval with text generation to mitigate hallucination in large language models (LLMs). We used PostgreSQL as a vector storage house and Ollama to host a local model like Mistral. The architecture includes document collection, data indexing, query processing, embedding model execution, vector database search, top result retrieval, generation model execution, and final response generation. This approach ensures that all data is processed locally, leveraging both embedding and generation models to provide accurate and relevant responses to user queries while maintaining privacy and security for confidential information.
Aug 27, 2024
2,913 words in the original blog post.
This article discusses the use of OpenAI Embeddings models in conjunction with PostgreSQL and pgvector to power similarity search. Vector embeddings are numerical representations of data such as words, sentences, images, audio, time-series data, or even molecular structures. They help capture semantic or contextual relationships between data points. The article explores how OpenAI's Embedding Models generate vector embeddings and why these embeddings are useful for similarity search. It also explains how to utilize them to build retrieval-augmented generation (RAG) applications. Finally, the article demonstrates how to perform similarity search using an SQL query on a PostgreSQL table with embedded data.
Aug 22, 2024
2,915 words in the original blog post.
Vector databases are essential tools in AI development as they enable efficient storage, indexing, and querying of high-dimensional vector data. AWS provides several options for managing vector data, including standalone vector databases like Amazon OpenSearch, Amazon RDS PostgreSQL with pgvector, and Timescale Cloud's combination of PostgreSQL and specialized extensions. Each option has unique features, use cases, and advantages, making it crucial to choose the right one based on specific needs. Standalone vector databases offer powerful search capabilities but can introduce extra engineering complexity, a learning curve, and uncertainty about future development. Amazon RDS PostgreSQL with pgvector provides a simpler alternative by leveraging the familiarity of PostgreSQL but may face scaling problems and expensive support costs. Timescale Cloud extends PostgreSQL with enhanced vector search capabilities while maintaining simplicity and reliability, making it an ideal choice for production AI applications in the AWS cloud.
Aug 16, 2024
2,841 words in the original blog post.
Vector databases are essential tools for storing and searching through vast amounts of data, where vectors act as points on a map with unique locations. HNSW (hierarchical navigable small world) indexes enable fast approximate nearest-neighbor searches for high-dimensional vector data by efficiently finding similar vectors without scanning the entire dataset. Pgvector is an extension for PostgreSQL that supports HNSW indexes, making it suitable for applications in AI and machine learning where rapid retrieval of information based on vector similarity is crucial. However, HNSW's memory-intensive nature can be a hurdle for developers working with large datasets, which is where pgvectorscale stands out by delivering high performance without consuming much disk space or memory.
Aug 13, 2024
2,612 words in the original blog post.
Cohere, a leading generative AI company, has partnered with pgai, an open-source PostgreSQL extension, to provide enterprise-ready large language models (LLMs) for building search and retrieval augmented generation (RAG) systems. The collaboration allows developers to create embeddings using Cohere's Embed model directly within PostgreSQL tables without transferring data in and out of the database. Additionally, Cohere Rerank can be used to improve search quality by reranking results based on relevance to queries. Pgai supports Cohere's entire suite of models, enabling developers to build hybrid search systems for higher-quality results in search and RAG applications. The integration of Cohere's Command, Embed, and Rerank models into pgai aims to help PostgreSQL evolve into an AI database, offering powerful solutions for various enterprise use cases such as investment research assistants, support chatbots, executive AI assistants, document summarization tools, knowledge and project staffing assistants, regulatory compliance monitoring, sentiment analysis for brand management, and Research and Development assistance.
Aug 09, 2024
3,406 words in the original blog post.
Time-series data is a sequence of data points collected over regular or irregular time intervals, allowing businesses to track trends and make predictions. It plays a crucial role in various fields such as marketing, supply chain management, health care, cryptocurrency, and finance. Time-series data can be continuous, discrete, or irregular, with each type having its own unique characteristics and requiring different analytical approaches. Understanding time-series data involves examining the four components: trend, seasonality, cyclicity, and irregularity. Common tools for time-series data include data ingest tools like Apache Kafka or Prometheus, specialized databases like TimescaleDB, query tools such as SQL, and visualization tools like Matplotlib and Tableau.
Aug 07, 2024
3,302 words in the original blog post.