I specified my service to my AzureSearch (vector database) for the retrieval and it just worked as expected.
retriever = AzureAISearchRetriever(
service_name= <service_name>,
api_key= <API Key>,
content_key="content",
top_k=10, index_name=<indexname>)