fix: update embedding model name to 'nomic-embed-text' in configuration and tests

This commit is contained in:
ArnabChatterjee20k committed 2026-05-29 18:48:01 +05:30
1 parent 805bfd04e3
commit 961d00b6a6
6 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ _APP_DB_PORT_DOCUMENTSDB=27017
_APP_DB_ADAPTER_VECTORSDB=postgresql
_APP_DB_HOST_VECTORSDB=postgresql
_APP_DB_PORT_VECTORSDB=5432
_APP_EMBEDDING_MODELS=nomic
_APP_EMBEDDING_MODELS=nomic-embed-text
_APP_EMBEDDING_ENDPOINT='http://appwrite-embedding:11434/embed'
_APP_EMBEDDING_TIMEOUT=30000
_APP_STORAGE_DEVICE=Local
+1 -1
View File
@@ -1361,7 +1361,7 @@ services:
appwrite-embedding:
image: appwrite/embedding:0.1.0
environment:
EMBEDDING_MODELS: ${_APP_EMBEDDING_MODELS:-nomic}
EMBEDDING_MODELS: ${_APP_EMBEDDING_MODELS:-nomic-embed-text}
container_name: appwrite-embedding
ports:
- "11430:11434"
@@ -22,7 +22,7 @@ class Embedding extends Model
->addRule('model', [
'type' => self::TYPE_STRING,
'description' => 'Embedding model used to generate embeddings.',
'example' => 'nomic'
'example' => 'nomic-embed-text'
])
->addRule('dimension', [
'type' => self::TYPE_INTEGER,
+2 -2
View File
@@ -2035,7 +2035,7 @@ class UsageTest extends Scope
'x-appwrite-key' => $this->getProject()['apiKey'],
], $this->getHeaders()),
[
'model' => 'nomic',
'model' => 'nomic-embed-text',
'texts' => ['usage test warm-up ' . $callCount],
]
);
@@ -2059,7 +2059,7 @@ class UsageTest extends Scope
'x-appwrite-key' => $this->getProject()['apiKey'],
], $this->getHeaders()),
[
'model' => 'nomic',
'model' => 'nomic-embed-text',
'texts' => ['usage test text ' . $i],
]
);
@@ -582,7 +582,7 @@ class DatabasesCustomServerTest extends Scope
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-key' => $this->getProject()['apiKey']
], [
'model' => 'nomic',
'model' => 'nomic-embed-text',
'texts' => [
'hello world',
'second sentence',
@@ -616,7 +616,7 @@ class DatabasesCustomServerTest extends Scope
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-key' => $this->getProject()['apiKey']
], [
'model' => 'nomic',
'model' => 'nomic-embed-text',
'texts' => [
'valid text',
123, // invalid, not a string
@@ -581,7 +581,7 @@ class VectorsDBCustomServerTest extends Scope
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-key' => $this->getProject()['apiKey']
], [
'model' => 'nomic',
'model' => 'nomic-embed-text',
'texts' => [
'hello world',
'second sentence',
@@ -615,7 +615,7 @@ class VectorsDBCustomServerTest extends Scope
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-key' => $this->getProject()['apiKey']
], [
'model' => 'nomic',
'model' => 'nomic-embed-text',
'texts' => [
'valid text',
123, // invalid, not a string