Skip to content

Commit

Permalink
fix: add new parameter to set index correct
Browse files Browse the repository at this point in the history
  • Loading branch information
frankqianms committed Nov 8, 2024
1 parent 21ec75c commit 6b6782f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ This app template also demonstrates usage of techniques like:
Upload new documents succeeded. If they do not exist, wait for several seconds...
setup finished
```
1. After creating index, please go to your index portal page to set the `descriptionVector` field as retrievable
![image](https://github.com/user-attachments/assets/0d0b6731-440d-4ae7-a7fd-af30ae13da0d)

1. Once you're done using the sample it's good practice to delete the index. You can do so with the command `python src/indexers/delete.py --ai-search-key <your-azure-ai-search-key>`.

### Conversation with bot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def create_index_if_not_exists(client: SearchIndexClient, name: str):
SimpleField(name="docId", type=SearchFieldDataType.String, key=True),
SimpleField(name="docTitle", type=SearchFieldDataType.String),
SearchableField(name="description", type=SearchFieldDataType.String, searchable=True),
SearchField(name="descriptionVector", type=SearchFieldDataType.Collection(SearchFieldDataType.Single), searchable=True, vector_search_dimensions=1536, vector_search_profile_name='my-vector-config'),
SearchField(name="descriptionVector", type=SearchFieldDataType.Collection(SearchFieldDataType.Single), hidden=False, searchable=True, vector_search_dimensions=1536, vector_search_profile_name='my-vector-config'),
],
scoring_profiles=[],
cors_options=CorsOptions(allowed_origins=["*"]),
Expand Down

0 comments on commit 6b6782f

Please sign in to comment.