Azure / gpt-rag-ingestion

MIT License
61 stars 53 forks source link

setup.py using obsolete field definition #37

Open dumbkid-tom opened 10 months ago

dumbkid-tom commented 10 months ago

Due to the error, it was not able to create the search index ragindex as well as the indexer ragindex-indexer-chunks under cognitive search. Using API version 2023-11-01:

vectorSearchConfiguration became obsolete after API version 2023-07-01-Preview. later version was recommending migrate to vectorSearchProfile instead. Changing to vectorSearchProfile fixed the error.

ERROR - Error when calling search API put indexes ragindex. Message: The request is invalid. Details: The property 'vectorSearchConfiguration' does not exist on type 'Microsoft.Azure.Search.V2023_11_01.SchemaField'. Make sure to only use property names that are defined by the type.

Same with algorithmConfigurations, after changed to algorithms, it fixed the error.

ERROR - Error when calling search API put indexes ragindex. Message: The request is invalid. Details: Cannot find nested property 'algorithmConfigurations' on the resource type 'Microsoft.Azure.Search.V2023_11_01.VectorSearch'.

Also the profile is defined a bit different for the vectorProfile. Adding a profiles section under vectorSearch fixed it.

ERROR - Error when calling search API put indexes ragindex. Message: The request is invalid. Details: definition : The field 'contentVector' uses a vector search algorithm configuration '' which is not defined.