Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit682b23e

Browse files
authored
Fix a few typos (#1316)
1 parentb2639e7 commit682b23e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎pgml-cms/blog/using-postgresml-with-django-and-embedding-search.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ All of this happens inside PostgresML. Our Django app doesn't need to implement
8888

8989
Before going forward, make sure you have the app running either locally or in a cloud provider of your choice. If hosting it somewhere, replace`localhost:8000` with the URL and port of your service.
9090

91-
The simplest way to interact with it is to use cURL oranHTTP client of your preference. If running in debug mode locally, the Rest Framework provides a nice web UI which you can access on[http://localhost:8000/api/todos/](http://localhost:8000/api/todo/) using a browser.
91+
The simplest way to interact with it is to use cURL oryour preferredHTTP client. If running in debug mode locally, the Rest Framework provides a nice web UI which you can access on[http://localhost:8000/api/todo/](http://localhost:8000/api/todo/) using a browser.
9292

9393
To create a to-do item with cURL, you can just run this:
9494

@@ -115,13 +115,13 @@ In return, you'll get your to-do item alongside the embedding of the `descriptio
115115

116116
The embedding contains 384 floating point numbers; we removed most of them in this blog post to make sure it fits on the page.
117117

118-
You can try creating multiple to-do items for fun and profit. If the description is changed, so will the embedding, demonstrating how the`intfloat/e5-small` modelis understanding the semantic meaning of your text.
118+
You can try creating multiple to-do items for fun and profit. If the description is changed, so will the embedding, demonstrating how the`intfloat/e5-small` modelunderstands the semantic meaning of your text.
119119

120120
###Searching
121121

122122
Once you have a few embeddings and to-dos stored in your database, the fun part of searching can begin. In a typical search example with PostgreSQL, you'd now be using`tsvector` to keyword match your to-dos to the search query with term frequency. That's a good technique, but semantic search is better.
123123

124-
We've created a simplesearch endpointthataccepts a query, a completed to-do filter, and a limit. To use it, you can justdo this:
124+
Oursearch endpoint accepts a query, a completed to-do filter, and a limit. To use it, you can justrun this:
125125

126126
```bash
127127
curl \
@@ -134,7 +134,7 @@ curl \
134134
If you've created a bunch of different to-do items, you should get only one search result back, and exactly the one you were expecting:
135135

136136
```json
137-
"Make a New Year resolution list"
137+
"Make a New Year resolution"
138138
```
139139

140140
You can increase the`limit` to something larger and you should get more documents, in decreasing order of relevance.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp