summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2024-05-27 18:41:20 +0000
committerlain <lain@soykaf.club>2024-05-27 18:41:20 +0000
commit3316a7ab70359b73e295018b97e4807bda10a537 (patch)
treeed18a4eacb091a48bcf736ef6013f8399189dd20 /config
parent42150d5581d221658877aecd21efcead9bc41c9d (diff)
parentddf103eca04c9571ba8310915556cc51cd4a9af8 (diff)
downloadpleroma-3316a7ab70359b73e295018b97e4807bda10a537.tar.gz
pleroma-3316a7ab70359b73e295018b97e4807bda10a537.zip
Merge branch 'qdrant-search-2' into 'develop'
Search: Basic Qdrant/Ollama search See merge request pleroma/pleroma!4109
Diffstat (limited to 'config')
-rw-r--r--config/config.exs13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs
index 9ba494b26..cd86816fe 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -933,6 +933,19 @@ config :pleroma, Pleroma.Application,
config :pleroma, Pleroma.Uploaders.Uploader, timeout: 30_000
+config :pleroma, Pleroma.Search.QdrantSearch,
+ qdrant_url: "http://127.0.0.1:6333/",
+ qdrant_api_key: "",
+ openai_url: "http://127.0.0.1:11345",
+ # The healthcheck url has to be set to nil when used with the real openai
+ # API, as it doesn't have a healthcheck endpoint.
+ openai_healthcheck_url: "http://127.0.0.1:11345/health",
+ openai_model: "snowflake/snowflake-arctic-embed-xs",
+ openai_api_key: "",
+ qdrant_index_configuration: %{
+ vectors: %{size: 384, distance: "Cosine"}
+ }
+
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"