July 2023 Summaries
5 posts from Tiger Data
Filter
Month:
Year:
Post Summaries
Back to Blog
AI agents are being explored as intermediaries to simplify human interaction with databases by analyzing and converting natural language into structured database queries. This is achieved through the use of a powerful language model, GPT-4, in an experiment built using Ruby. The results showed the potential power of using AI as a "middle-man" between humans and databases. PostgreSQL is being used as long-term memory for AI agents to reduce costs and improve performance by storing interactions, results, and other relevant data in a flexible and robust relational database system. TimescaleDB is also mentioned as a tool that supercharges PostgreSQL for analytics, events, and time series workloads, allowing developers to scale their databases further while enjoying the best developer experience and cost-effectiveness. The community is invited to join the discussion on combining AI with databases like PostgreSQL and explore new possibilities.
Jul 26, 2023
909 words in the original blog post.
AWS Relational Database Service (RDS) offers managed PostgreSQL database hosting with enhanced functionality and reduced administrative overhead. However, accurately estimating RDS costs can be complex due to various factors such as data transfer, backup, and extra features. To estimate RDS costs effectively, developers should use the AWS Pricing Calculator, calculate instance cost, storage costs, data transfer costs, backup costs, and consider additional feature costs. Additionally, they should factor in support costs and revise their architecture to optimize costs. An alternative solution is Timescale, a PostgreSQL-compatible hosted database optimized for time-series data, which can save up to 95% on storage costs while achieving better performance and scalability.
Jul 20, 2023
2,250 words in the original blog post.
Time-series analysis is a powerful technique used by software engineers to extract valuable insights from temporal data. It involves analyzing and predicting patterns based on time-based data, which can be achieved using Python as the primary programming language for data analysis. Python offers an ideal choice due to its simplicity, versatility, and vast community support. By leveraging libraries like pandas, NumPy, statsmodels, and scikit-learn, developers can perform various operations such as data aggregation, filtering, and computing summary statistics. Additionally, Python provides extensive library support, allowing for code reusability and facilitating the development of time-series forecasting models. Common tasks in time-series processing include plotting data using Pyplot, performing time-series analysis for predictive questions, extracting useful features for machine learning/deep learning algorithms, data cleaning, and handling large datasets. To work with time series in Python, developers can utilize various libraries such as pandas, sktime, pdmarima, and tsfresh. These tools provide efficient storage, retrieval, and manipulation of time-series data, enabling the analysis of complex patterns and trends. By leveraging Timescale, a powerful open-source relational database for time-series and analytics, developers can execute Python code directly in the database, accelerating their development process and improving the efficiency of time-series data management.
Jul 19, 2023
3,621 words in the original blog post.
This tutorial introduces building LLM applications with the LangChain framework in Python using PostgreSQL and pgvector as a vector database for OpenAI embeddings data. It covers creating embeddings from your data, splitting text into smaller chunks while preserving associated metadata, inserting OpenAI embeddings into PostgreSQL and pgvector, performing similarity searches to fetch relevant documents, and tying everything together with Retrieval Augmented Generation (RAG) using LangChain's LLMs and a vector store-backed retriever. The tutorial also includes a bonus section on citing sources used in the RAG process.
Jul 12, 2023
3,234 words in the original blog post.
You can now set up a Python environment on your macOS system with Jupyter Notebooks, utilizing tools like Pyenv and Virtualenv to manage multiple Python installations and isolated environments. You've installed the necessary dependencies, including npm for JupyterLab, and created a virtual environment for your project. You've also learned how to store your OpenAI token in a `.env` file and load it into your notebooks. With this setup, you're ready to explore OpenAI's capabilities within your notebooks and take the next step by learning how to create, store and query OpenAI embeddings using PostgreSQL and pgvector.
Jul 05, 2023
685 words in the original blog post.