Azure-Samples / Azure-Samples/document-intelligence-code-samples

SSL Verification Error in sample_rag_langchain.ipynb using AzureSearch

Abierto
#35 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C#
Estrellas
201
Forks
115
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi,

I am experiencing an SSL verification error while working with the sample_rag_langchain.ipynb notebook in the Python folder of the Document Intelligence Code Samples repository. Specifically, this occurs in the section where embeddings and indexes are created using Azure Search.

Error Details
When running the cell that uses the AzureSearch class, the following error is raised:
ServiceRequestError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

Repository: Azure Samples Document Intelligence Code Samples
Folder:Python(v4.0)/Retrieval_Augmented_Generation_(RAG)_samples)
Notebook: sample_rag_langchain.ipynb
Platform: Running within a company portal, windows 11.

Issue
In the native Azure Search library, I typically resolve this issue by setting the parameter connection_verify=False. However, the langchain library does not seem to have an option to disable SSL verification.

Request
Could you please provide guidance or an update to the notebook/library to include an option to disable SSL verification for AzureSearch in the langchain library? This would help in bypassing the SSL certificate verification error.

Thank you for your assistance.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Abre Open Python(v4.0)/Retrieval_Augmented_Generation_(RAG)_samples/sample_rag_langchain.ipynb y ejecuta la celda que crea embeddings e indexa con AzureSearch. Inspecciona cómo está configurada la clase AzureSearch de LangChain y verifica el error de certificado informado en el entorno de Windows 11 indicado. Se considera completado cuando el notebook o el uso documentado de su biblioteca proporciona una forma compatible de abordar este fallo de verificación SSL.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
azure, python
Área
cloud, search
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.