Skip to content

Commit 647a215

Browse files
committed
Brief postgresml-django announcement post
1 parent 2e26626 commit 647a215

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

pgml-cms/blog/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Table of contents
22

33
* [Home](README.md)
4+
* [Introducing postgresml-django: Seamless Integration of PostgresML and Django ORM](introducing-postgresml-django-seamless-integration-of-postgresml-and-django-orm.md)
45
* [Korvus x Firecrawl: Rag in a single query](korvus-firecrawl-rag-in-a-single-query.md)
56
* [A Speed Comparison of the Most Popular Retrieval Systems for RAG](a-speed-comparison-of-the-most-popular-retrieval-systems-for-rag.md)
67
* [Korvus The All-in-One RAG Pipeline for PostgresML](introducing-korvus-the-all-in-one-rag-pipeline-for-postgresml.md)
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
description: Introducing postgresml-django a Python module that seamlessly integrates PostgresML and Django.
3+
featured: true
4+
tags: [engineering]
5+
image: ".gitbook/assets/Blog-Image_Korvus-Firecrawl.jpg"
6+
---
7+
8+
# Introducing postgresml-django: Seamless Integration of PostgresML and Django ORM
9+
10+
<div align="left">
11+
12+
<figure><img src=".gitbook/assets/silas.jpg" alt="Author" width="100"><figcaption></figcaption></figure>
13+
14+
</div>
15+
16+
Silas Marvin
17+
18+
August 8, 2024
19+
20+
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.
21+
22+
With postgresml-django, you can:
23+
- Automatically generate in-database embeddings for specified fields in your Django models
24+
- Perform vector similarity searches directly in your database
25+
- Seamlessly integrate advanced machine learning capabilities into your Django projects
26+
27+
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.
28+
29+
## Quick Start
30+
31+
Here's a simple example of how to use postgresml-django with a Django model:
32+
33+
```python
34+
from django.db import models
35+
from postgresml_django import VectorField, Embed
36+
37+
class Document(Embed):
38+
text = models.TextField()
39+
text_embedding = VectorField(
40+
field_to_embed="text",
41+
dimensions=384,
42+
transformer="intfloat/e5-small-v2"
43+
)
44+
45+
# Searching
46+
results = Document.vector_search("text_embedding", "query to search against")
47+
```
48+
49+
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.
50+
51+
## Why We are Excited About this
52+
53+
There are ton of reasons we are excited for this release but they can all be summarized by two main points:
54+
55+
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.
56+
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.
57+
58+
By bridging Django ORM and PostgresML, we're opening up new possibilities for building intelligent, data-driven applications with ease.
59+
60+
## Recap
61+
62+
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.
63+
64+
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.
65+
66+
Happy coding!

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy