File tree Expand file tree Collapse file tree 5 files changed +271
-277
lines changed
Expand file tree Collapse file tree 5 files changed +271
-277
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ AZURE_AI_SEARCH_DOC_ID_FIELD="doc_id"
3131AZURE_AI_SEARCH_EMBEDDING_FIELD = " embedding"
3232AZURE_AI_SEARCH_ID_FIELD = " id"
3333AZURE_AI_SEARCH_METADATA_FIELD = " metadata"
34- AZURE_AI_SEARCH_EMBEDDING_DIMENSIONALITY = " 3072 "
34+ AZURE_AI_SEARCH_EMBEDDING_DIMENSIONALITY = " 1536 "
3535
3636# Optional: Set the log level for the Azure SDKs.
3737AZURE_LOG_LEVEL = info
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ export const initSettings = async () => {
136136 // FIXME: import IndexManagement.CREATE_IF_NOT_EXISTS from 'llamaindex'
137137 // indexManagement: IndexManagement.CREATE_IF_NOT_EXISTS,
138138 indexManagement : "CreateIfNotExists" as IndexManagement ,
139- embeddingDimensionality : Number ( process . env . AZURE_AI_SEARCH_EMBEDDING_DIMENSIONALITY ) ?? 3072 ,
139+ embeddingDimensionality : Number ( process . env . AZURE_AI_SEARCH_EMBEDDING_DIMENSIONALITY ) ?? 1536 ,
140140 languageAnalyzer : KnownAnalyzerNames . EnLucene ,
141141 // store vectors on disk
142142 vectorAlgorithmType : KnownVectorSearchAlgorithmKind . ExhaustiveKnn ,
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ azd env set AZURE_OPENAI_EMB_MODEL_NAME text-embedding-3-small
114114azd env set AZURE_OPENAI_EMB_MODEL_NAME text-embedding-3-large
115115```
116116
117- 2 . Specify the desired dimensions of the model: (from 256-3072 , model dependent)
117+ 2 . Specify the desired dimensions of the model: (from 256-1536 , model dependent)
118118
119119``` shell
120120azd env set AZURE_OPENAI_EMB_DIMENSIONS 256
Original file line number Diff line number Diff line change 6969 "value" : " ${AZURE_AI_SEARCH_EMBEDDING_FIELD=embedding}"
7070 },
7171 "searchEmbeddingDimensionality" : {
72- "value" : " ${AZURE_AI_SEARCH_EMBEDDING_DIMENSIONALITY=3072 }"
72+ "value" : " ${AZURE_AI_SEARCH_EMBEDDING_DIMENSIONALITY=1536 }"
7373 },
7474 "searchIdField" : {
7575 "value" : " ${AZURE_AI_SEARCH_ID_FIELD=id}"
You can’t perform that action at this time.
0 commit comments