From 97bd61ddb0af721b5e8743ff686096f5bba45748 Mon Sep 17 00:00:00 2001
From: Silas Marvin <19626586+SilasMarvin@users.noreply.github.com>
Date: Thu, 22 Aug 2024 12:57:28 -0700
Subject: [PATCH 1/3] Brief postgresml-django announcement post
---
pgml-cms/blog/SUMMARY.md | 1 +
...ntegration-of-postgresml-and-django-orm.md | 66 +++++++++++++++++++
2 files changed, 67 insertions(+)
create mode 100644 pgml-cms/blog/introducing-postgresml-django-seamless-integration-of-postgresml-and-django-orm.md
diff --git a/pgml-cms/blog/SUMMARY.md b/pgml-cms/blog/SUMMARY.md
index 21804c7af..6af39cee3 100644
--- a/pgml-cms/blog/SUMMARY.md
+++ b/pgml-cms/blog/SUMMARY.md
@@ -1,6 +1,7 @@
# Table of contents
* [Home](README.md)
+* [Introducing postgresml-django: Seamless Integration of PostgresML and Django ORM](introducing-postgresml-django-seamless-integration-of-postgresml-and-django-orm.md)
* [Sudowrite + PostgresML](sudowrite-postgresml.md)
* [Korvus x Firecrawl: Rag in a single query](korvus-firecrawl-rag-in-a-single-query.md)
* [A Speed Comparison of the Most Popular Retrieval Systems for RAG](a-speed-comparison-of-the-most-popular-retrieval-systems-for-rag.md)
diff --git a/pgml-cms/blog/introducing-postgresml-django-seamless-integration-of-postgresml-and-django-orm.md b/pgml-cms/blog/introducing-postgresml-django-seamless-integration-of-postgresml-and-django-orm.md
new file mode 100644
index 000000000..c5dcd0431
--- /dev/null
+++ b/pgml-cms/blog/introducing-postgresml-django-seamless-integration-of-postgresml-and-django-orm.md
@@ -0,0 +1,66 @@
+---
+description: Introducing postgresml-django a Python module that seamlessly integrates PostgresML and Django.
+featured: true
+tags: [engineering]
+image: ".gitbook/assets/Blog-Image_Korvus-Firecrawl.jpg"
+---
+
+# Introducing postgresml-django: Seamless Integration of PostgresML and Django ORM
+
+
+
+
+
+
+
+Silas Marvin
+
+August 8, 2024
+
+We're excited to announce the release of postgresml-django, a Python module that bridges the gap between PostgresML and Django ORM. This powerful tool enables automatic in-database embedding of Django models, simplifying the process of creating and searching vector embeddings for your text data.
+
+With postgresml-django, you can:
+- Automatically generate in-database embeddings for specified fields in your Django models
+- Perform vector similarity searches directly in your database
+- Seamlessly integrate advanced machine learning capabilities into your Django projects
+
+Whether you're building a recommendation system, a semantic search engine, or any application requiring text similarity comparisons, postgresml-django streamlines your workflow and enhances your Django projects with the power of PostgresML.
+
+## Quick Start
+
+Here's a simple example of how to use postgresml-django with a Django model:
+
+```python
+from django.db import models
+from postgresml_django import VectorField, Embed
+
+class Document(Embed):
+ text = models.TextField()
+ text_embedding = VectorField(
+ field_to_embed="text",
+ dimensions=384,
+ transformer="intfloat/e5-small-v2"
+ )
+
+# Searching
+results = Document.vector_search("text_embedding", "query to search against")
+```
+
+In this example, we define a `Document` model with a `text` field and a `text_embedding` VectorField. The VectorField automatically generates embeddings for the `text` field using the specified transformer. The `vector_search` method allows for easy similarity searches based on these embeddings.
+
+## Why We are Excited About this
+
+There are ton of reasons we are excited for this release but they can all be summarized by two main points:
+
+1. Simplicity: postgresml-django integrates advanced machine learning capabilities into Django projects with just a few lines of code, making it accessible to developers of all skill levels.
+2. Performance: By leveraging PostgresML to perform vector operations directly in the database, it significantly improves speed and efficiency, especially when dealing with large datasets.
+
+By bridging Django ORM and PostgresML, we're opening up new possibilities for building intelligent, data-driven applications with ease.
+
+## Recap
+
+postgresml-django marks a significant step forward in making advanced machine learning capabilities accessible to Django developers. We invite you to try it out and experience the power of seamless vector embeddings and similarity searches in your projects.
+
+For more detailed information, installation instructions, and advanced usage examples, check out the [postgresml-django GitHub repository](https://github.com/postgresml/postgresml-django). We're eager to hear your feedback and see the innovative ways you'll use postgresml-django in your applications.
+
+Happy coding!
From a28a6c06493ddc209e0d68d1c29675dbb5bb5a7b Mon Sep 17 00:00:00 2001
From: Silas Marvin <19626586+SilasMarvin@users.noreply.github.com>
Date: Wed, 28 Aug 2024 09:28:33 -0700
Subject: [PATCH 2/3] Updated and almost ready to go
---
pgml-cms/blog/SUMMARY.md | 2 +-
...ml-and-django-orm.md => announcing-postgresml-django.md} | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
rename pgml-cms/blog/{introducing-postgresml-django-seamless-integration-of-postgresml-and-django-orm.md => announcing-postgresml-django.md} (93%)
diff --git a/pgml-cms/blog/SUMMARY.md b/pgml-cms/blog/SUMMARY.md
index 6af39cee3..bc1866fd8 100644
--- a/pgml-cms/blog/SUMMARY.md
+++ b/pgml-cms/blog/SUMMARY.md
@@ -1,7 +1,7 @@
# Table of contents
* [Home](README.md)
-* [Introducing postgresml-django: Seamless Integration of PostgresML and Django ORM](introducing-postgresml-django-seamless-integration-of-postgresml-and-django-orm.md)
+* [Announcing postgresml-django](announcing-postgresml-django.md)
* [Sudowrite + PostgresML](sudowrite-postgresml.md)
* [Korvus x Firecrawl: Rag in a single query](korvus-firecrawl-rag-in-a-single-query.md)
* [A Speed Comparison of the Most Popular Retrieval Systems for RAG](a-speed-comparison-of-the-most-popular-retrieval-systems-for-rag.md)
diff --git a/pgml-cms/blog/introducing-postgresml-django-seamless-integration-of-postgresml-and-django-orm.md b/pgml-cms/blog/announcing-postgresml-django.md
similarity index 93%
rename from pgml-cms/blog/introducing-postgresml-django-seamless-integration-of-postgresml-and-django-orm.md
rename to pgml-cms/blog/announcing-postgresml-django.md
index c5dcd0431..801c447b1 100644
--- a/pgml-cms/blog/introducing-postgresml-django-seamless-integration-of-postgresml-and-django-orm.md
+++ b/pgml-cms/blog/announcing-postgresml-django.md
@@ -1,11 +1,11 @@
---
-description: Introducing postgresml-django a Python module that seamlessly integrates PostgresML and Django.
+description: The Python module that seamlessly integrates PostgresML and Django ORM
featured: true
-tags: [engineering]
+tags: [product]
image: ".gitbook/assets/Blog-Image_Korvus-Firecrawl.jpg"
---
-# Introducing postgresml-django: Seamless Integration of PostgresML and Django ORM
+# Announcing postgresml-django