Comments (17)
Okay I found out the solution (what worked for me), it was very simple fix by going to Project Settings -> Adding Connection of Azure AI Search. Hope it helps!
This works!!!🤩
from azure-docs.
I am facing the exact same issue.
Any resolution? I've created an Azure AI Search Service, it doesn't show up though.
from azure-docs.
@MarcGiannuzzi
Thanks for your feedback! We will investigate and update as appropriate.
from azure-docs.
Okay I found out the solution (what worked for me), it was very simple fix by going to Project Settings -> Adding Connection of Azure AI Search. Hope it helps!
from azure-docs.
I looked into it and found following issue:
It looks like the base url is not added correctly for the API call. I got the API call to run in postman with this base url: [service-name].search.windows.net/. Where would I open an issue for that @eric-urban?
from azure-docs.
Also having the same issue as @alexisfcote & @MarcGiannuzzi
I will mention that my Azure AI search is on the free tier.
from azure-docs.
@MarcGiannuzzi
Thank you for bringing this to our attention.
I've delegated this to content author @eric-urban, who will review it and offer their insightful opinions.
from azure-docs.
@eric-urban
Could you please review add comments on this, update as appropriate.
from azure-docs.
I'm also having this issue which previously didn't occur. Happens with a new ai project and new search service in a new resource group.
from azure-docs.
This happens to my first ever project. From previous comments, I guess I did nothing wrong.🙂
from azure-docs.
Hi,
Thank you @hp1911 for your answer !
However I am still having trouble connecting my deployment to my search index:
AI Studio seems to not be able to connect to the search index data.
Is the same for you ?
from azure-docs.
@MarcGiannuzzi I am facing exactly the same issue and couldn't find a way to resolve it? Did you find a solution?
from azure-docs.
Hi @justuswolff-audit ,
Nope, still struggling to connect the search service to the deployment; the selection of the index seems impossible.
Did someone success in doing that ?
from azure-docs.
from azure-docs.
FYI: Started working for me just now.
from azure-docs.
Hi @justuswolff-audit ,
I can also choose my azure search index now, thank you for your notification !
However, when sending a request, the /completions API return 500 error.
Is it the same for you ?
Also, does anyone has some example of how to use the same connection with the Python SDK ?
from azure-docs.
Hi @MarcGiannuzzi,
for me it is still creating the index which is kind of odd. I guess it is still not working as expected. I started using the Python API as well, that seems to work. See the code below :)
import os
from dotenv import load_dotenv
from openai import AzureOpenAI
load_dotenv()
deployment = "gpt-35-turbo-16k"
client = AzureOpenAI(
azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT"),
api_key=os.getenv("AZURE_OPENAI_API_KEY"),
api_version="2024-02-01",
)
completion = client.chat.completions.create(
model=deployment,
messages=[
{
"role": "system",
"content": """
You are a useful assistant.
""",
},
{
"role": "user",
"content": "Hi",
},
],
extra_body={
"data_sources": [
{
"type": "azure_search",
"parameters": {
"endpoint": os.environ["AZURE_AI_SEARCH_ENDPOINT"],
"index_name": os.environ["AZURE_AI_SEARCH_INDEX"],
"authentication": {
"type": "api_key",
"key": os.environ["AZURE_AI_SEARCH_API_KEY"],
},
},
}
],
},
)
Hope this helps!
from azure-docs.
Related Issues (20)
- Deploy an Azure Kubernetes Service (AKS) cluster using Terraform. Minor mistakes in the code. HOT 2
- User is getting parameter is incorrect while using new Teams, even after updating to FSLogix Hotfix 4 HOT 2
- Documentation for multi-region writes in Cosmos DB for MongoDB is unclear about region names HOT 5
- Confusion over connection strings when using retriable writes in Cosmos DB for Mongo DB HOT 2
- AKS Learn feedback: Conntrack Table default limit not correct HOT 1
- AKS Learn feedback: guidance needed on Node Autoprovisioning and Availability Zone support HOT 2
- AKS Learn feedback: guidance on creating / updating Node Autoprovisioning node pools HOT 2
- No Healthy Upstream Issue : After deploying everything using Microsoft Docs - Traffic splitting with Application Gateway for Containers - Gateway API HOT 2
- Pgbouncer version: Azure Cosmos DB for PostgreSQL. Prepared statement error HOT 3
- AKS Learn feedback: HOT 3
- How to fix Azure FHIR service import failure HOT 3
- Getting Error: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret' HOT 3
- Azure CA intermediate certificates about to expire HOT 2
- playground embed code and sample app flusk code are different. HOT 2
- mobile layout type - settings not working/ HOT 2
- layout compatible with various display sizes in embed power bi. HOT 2
- AKS Learn feedback: HOT 2
- 1 or more resource types doesnt appear in Move operation support for resources HOT 2
- Needs to fix typos in "Control updates with Maintenance Configurations and the Azure CLI" document HOT 2
- Need more information on Azure AI Search partitions. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-docs.