Giter Site home page Giter Site logo

Comments (17)

absolute-tk avatar absolute-tk commented on August 16, 2024 7

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!

image

This works!!!🤩

from azure-docs.

hp1911 avatar hp1911 commented on August 16, 2024 3

I am facing the exact same issue.
image

Any resolution? I've created an Azure AI Search Service, it doesn't show up though.

from azure-docs.

TPavanBalaji avatar TPavanBalaji commented on August 16, 2024 2

@MarcGiannuzzi
Thanks for your feedback! We will investigate and update as appropriate.

from azure-docs.

hp1911 avatar hp1911 commented on August 16, 2024 2

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!
image

from azure-docs.

justuswolff-audit avatar justuswolff-audit commented on August 16, 2024 2

I looked into it and found following issue:
Screenshot 2024-04-25 at 11 01 00
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.

caleb-collar avatar caleb-collar commented on August 16, 2024 1

Also having the same issue as @alexisfcote & @MarcGiannuzzi

I will mention that my Azure AI search is on the free tier.

from azure-docs.

Naveenommi-MSFT avatar Naveenommi-MSFT commented on August 16, 2024

@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.

Naveenommi-MSFT avatar Naveenommi-MSFT commented on August 16, 2024

@eric-urban
Could you please review add comments on this, update as appropriate.

from azure-docs.

levyuk avatar levyuk commented on August 16, 2024

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.

absolute-tk avatar absolute-tk commented on August 16, 2024

IMG_2897
This happens to my first ever project. From previous comments, I guess I did nothing wrong.🙂

from azure-docs.

MarcGiannuzzi avatar MarcGiannuzzi commented on August 16, 2024

Hi,

Thank you @hp1911 for your answer !

However I am still having trouble connecting my deployment to my search index:

image

AI Studio seems to not be able to connect to the search index data.

Is the same for you ?

from azure-docs.

justuswolff-audit avatar justuswolff-audit commented on August 16, 2024

@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.

MarcGiannuzzi avatar MarcGiannuzzi commented on August 16, 2024

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.

alexisfcote avatar alexisfcote commented on August 16, 2024

Same issue here
image

from azure-docs.

justuswolff-audit avatar justuswolff-audit commented on August 16, 2024

FYI: Started working for me just now.

from azure-docs.

MarcGiannuzzi avatar MarcGiannuzzi commented on August 16, 2024

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.

justuswolff-audit avatar justuswolff-audit commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.