Skip to content

Commit f7c8e31

Browse files
myfearjmartisk
authored andcommitted
Address review comments
1 parent 1becc12 commit f7c8e31

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/modules/ROOT/pages/rag-pgvector-store.adoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,20 @@ If you switch to a different embedding model, ensure the `dimension` value is up
6464
Use-index controls whether the engine should create and use an index over the embeddings table.
6565
To create an index, you need the index-list-size parameter, which is a fine-tuning parameter.
6666
This basically creates an IVFFlat index with clusters to extend the effectivness of nearest neighbor search.
67-
If you set the use-index=true you will have to also se the index-list-size=10.
67+
If you set the `use-index=true` you will have to also se the `index-list-size`.
68+
69+
[NOTE]
70+
====
71+
This is something you rarely would need in development.
72+
====
6873

6974
[source,properties]
7075
----
7176
quarkus.langchain4j.pgvector.use-index=true
7277
quarkus.langchain4j.pgvector.index-list-size=10
7378
----
7479

75-
Higher index size values speed up queries by reducing the search space during query time.
80+
Higher number of lists values speed up queries by reducing the search space during query time.
7681
However, it also decreases the region size, which can lead to more recall errors by excluding some points.
7782
Additionally, more distance comparisons are required to find the closest cluster during step one of the query process.
7883

@@ -82,7 +87,6 @@ Here are some recommendations for setting the lists parameter:
8287
* For datasets with more than one million rows, use lists = sqrt(rows).
8388
* It is generally advisable to have at least 10 clusters.
8489

85-
8690
== Usage Example
8791

8892
Once the extension is installed and configured, you can ingest documents into PGVector using the following code:

0 commit comments

Comments
 (0)