mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-04-24 13:57:23 -04:00
Save ram
This commit is contained in:
parent
4e3c17ac3f
commit
d996daec0a
1 changed files with 14 additions and 1 deletions
|
@ -15,7 +15,20 @@ defmodule Pleroma.Search.QdrantSearch do
|
|||
|
||||
@impl true
|
||||
def init(_) do
|
||||
payload = %{vectors: %{size: 384, distance: "Cosine"}}
|
||||
payload = %{
|
||||
vectors: %{size: 384, distance: "Cosine"},
|
||||
hnsw_config: %{
|
||||
on_disk: true
|
||||
},
|
||||
optimizers_config: %{
|
||||
memmap_threshold: 20000
|
||||
},
|
||||
quantization_config: %{
|
||||
binary: %{
|
||||
always_ram: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
HTTP.put("/collections/posts", payload)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue