Skip to content

Commit

Permalink
AzureAiSearchEmbeddingStore - add "indexName" to the builder (#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain4j committed May 23, 2024
1 parent e8607e9 commit 0dcd256
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import java.util.List;

import static dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore.INDEX_NAME;
import static dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore.DEFAULT_INDEX_NAME;
import static java.util.Arrays.asList;
import static org.assertj.core.api.Assertions.assertThat;

Expand All @@ -42,15 +42,15 @@ class AutoConfigIT {
.endpoint(System.getenv("AZURE_SEARCH_ENDPOINT"))
.credential(new AzureKeyCredential(System.getenv("AZURE_SEARCH_KEY")))
.buildClient();
private final SearchIndex index = new SearchIndex(INDEX_NAME);
private final SearchIndex index = new SearchIndex(DEFAULT_INDEX_NAME);

private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
.withConfiguration(AutoConfigurations.of(AutoConfig.class));

@Test
void should_provide_ai_search_retriever() {

searchIndexClient.deleteIndex(INDEX_NAME);
searchIndexClient.deleteIndex(DEFAULT_INDEX_NAME);

contextRunner
.withPropertyValues(
Expand Down Expand Up @@ -167,7 +167,7 @@ void should_provide_ai_search_retriever() {
@Test
void should_provide_ai_search_embedding_store() {

searchIndexClient.deleteIndex(INDEX_NAME);
searchIndexClient.deleteIndex(DEFAULT_INDEX_NAME);

contextRunner
.withPropertyValues(
Expand Down

0 comments on commit 0dcd256

Please sign in to comment.