microsoft / AzureDataRetrievalAugmentedGenerationSamples

Samples to demonstrate pathways for Retrieval Augmented Generation (RAG) for Azure Data
MIT License
128 stars 67 forks source link

Update CosmosDB_CogSearch_AzureOpenAI_Tutorial.ipynb - fixed engine configuration #26

Closed DavideDelVecchio closed 1 year ago

DavideDelVecchio commented 1 year ago

generate_embeddings method used a constant value for engine that is engine="text-embedding-ada-002" without reading the configuration from file. This fixes it and aligns with the generate_completion method