ಈ ಮಾರ್ಗದರ್ಶಿ ಅದೃಶ್ಯ ಪೋರ್ಟಲ್ ಬಳಸಿ ಅಜೂರ್ AI ಹುಡುಕಾಟವನ್ನು ವ್ಯವಸ್ಥೆಗೊಳಿಸುವಲ್ಲಿ ನಿಮಗೆ ಸಹಾಯ ಮಾಡುತ್ತದೆ. ಅಜೂರ್ AI ಹುಡುಕಾಟ ಸೇವೆಯನ್ನು ಸೃಷ್ಟಿಸುವಾಗ ಮತ್ತು ಸಂರಚಿಸುವಾಗ ಕೆಳಗಿನ ಹಂತಗಳನ್ನು ಅನುಸರಿಸಿ.
ಪ್ರಾರಂಭಿಸುವ ಮೊದಲು, ನಿಮಗಾಗಿ ಕೆಳಗಿನವುಗಳು ಇದ್ದಾರೆ ಎಂದು ಖಚಿತಪಡಿಸಿಕೊಳ್ಳಿ:
https://<service-name>.search.windows.net ಹಾಗಿರಬೇಕು.ಅಜೂರ್ AI ಹುಡುಕಾಟ ವಿವಿಧ ಉಪಕರಣಗಳೊಂದಿಗೆ ಸಮನ್ವಯಗೊಳ್ಳುತ್ತದೆ ನಿಮ್ಮ ಹುಡುಕಾಟ ಸಾಮರ್ಥ್ಯಗಳನ್ನು ಸುಧಾರಿಸಲು. ನೀವು ಅಜೂರ್ CLI, ಪೈಥಾನ್ SDK, .ನெட் SDK ಮತ್ತು ಇತರೆ ಉಪಕರಣಗಳನ್ನು ಸುಧಾರಿತ ಸಂರಚನೆಗಳು ಮತ್ತು ಕಾರ್ಯಾಚರಣೆಗಳಿಗಾಗಿ ಬಳಸಿ.
ಕೆಳಗಿನ ಕಮಾಂಡ್ ಬಳಸಿ ಅಜೂರ್ CLI ಯಲ್ಲಿ ಸೈನ್ ಇನ್ ಮಾಡಿ:
az login
(ಶಿಫಾರಸು) ಮೈಕ್ರೋಸಾಫ್ಟ್ ಎಂಟ್ರಾ ಐಡಿ (RBAC) ಮೂಲಕ ಕೀಲಿಯಿಲ್ಲದ ಪ್ರವೇಶವನ್ನು ಸಕ್ರಿಯಗೊಳಿಸಿ:
az search service update --name <service-name> --resource-group <resource-group> --auth-options aadOrApiKey
az role assignment create --assignee <your-user-or-principal-id> --role "Search Service Contributor" --scope $(az search service show -g <resource-group> -n <service-name> --query id -o tsv)
az role assignment create --assignee <your-user-or-principal-id> --role "Search Index Data Contributor" --scope $(az search service show -g <resource-group> -n <service-name> --query id -o tsv)
# az search service show has no "endpoint" field; build the URL from the service name.
export AZURE_SEARCH_SERVICE_ENDPOINT="https://<service-name>.search.windows.net"
RBAC ಸಕ್ರಿಯಗೊಂಡಾಗ, ಕೆಳಗಿನ ಪೈಥಾನ್ ಮತ್ತು .ನೆಟ್ SDK ಮಾದರಿಗಳು DefaultAzureCredential ಮೂಲಕ ಪ್ರಮಾಣೀಕರಿಸುತ್ತವೆ, ಇದು ಸ್ಥಳೀಯ ಅಭಿವೃದ್ಧಿಯಲ್ಲಿ ನಿಮ್ಮ az login ಸೆಷನ್ ಬಳಸುತ್ತದೆ — ಯಾವುದೇ ಆಡಳಿತ ಕೀಲಿಯ ಅಗತ್ಯವಿಲ್ಲ. Connect to Azure AI Search using roles ನೋಡಿ.
# az search service show has no "endpoint" field; build the URL from the service name.
export AZURE_SEARCH_SERVICE_ENDPOINT="https://<service-name>.search.windows.net"
export AZURE_SEARCH_API_KEY=$(az search admin-key show -g <resource-group> --service-name <service-name> --query "primaryKey" -o tsv)
# az search service show has no "endpoint" field; build the URL from the service name.
$env:AZURE_SEARCH_SERVICE_ENDPOINT = "https://<service-name>.search.windows.net"
$env:AZURE_SEARCH_API_KEY = $(az search admin-key show -g <resource-group> --service-name <service-name> --query "primaryKey" -o tsv)
ಅಜೂರ್ ಕಾಗ್ನಿಟಿವ್ ಹುಡುಕಾಟ ಕ್ಲೈಂಟ್ ಲೈಬ್ರರಿ ಮತ್ತು ಅಜೂರ್ ಐಡೆಂಟಿಟಿ ಪೈಥಾನ್ ಪ್ಯಾಕೇಜುಗಳನ್ನು ಇನ್ಸ್ಟಾಲ್ ಮಾಡಿ:
pip install azure-search-documents azure-identity
ಸೂಚ್ಯಂಕವನ್ನು ಸೃಷ್ಟಿಸಿ ಮತ್ತು ಡಾಕ್ಯುಮೆಂಟ್ಗಳನ್ನು ಅಪ್ಲೋಡ್ ಮಾಡಲು ಕೆಳಗಿನ ಪೈಥಾನ್ ಕೋಡ್ ಉಪಯೋಗಿಸಿ:
import os
from azure.identity import DefaultAzureCredential
from azure.search.documents import SearchClient
from azure.search.documents.indexes import SearchIndexClient
from azure.search.documents.indexes.models import SearchIndex, SimpleField, edm
service_endpoint = os.getenv("AZURE_SEARCH_SERVICE_ENDPOINT")
index_name = "sample-index"
# Keyless (recommended): uses your `az login` identity via Entra ID RBAC.
# Requires the "Search Service Contributor" and "Search Index Data Contributor" roles.
credential = DefaultAzureCredential()
# Fallback (key-based auth):
# from azure.core.credentials import AzureKeyCredential
# credential = AzureKeyCredential(os.getenv("AZURE_SEARCH_API_KEY"))
index_client = SearchIndexClient(service_endpoint, credential)
fields = [
SimpleField(name="id", type=edm.String, key=True),
SimpleField(name="content", type=edm.String, searchable=True),
]
index = SearchIndex(name=index_name, fields=fields)
index_client.create_index(index)
search_client = SearchClient(service_endpoint, index_name, credential)
documents = [
{"id": "1", "content": "Hello world"},
{"id": "2", "content": "Azure Cognitive Search"}
]
search_client.upload_documents(documents)
ಸೂಚ್ಯಂಕ ಸೃಷ್ಟಿಸಲು ಮತ್ತು ಡಾಕ್ಯುಮೆಂಟ್ಗಳನ್ನು ಅಪ್ಲೋಡ್ ಮಾಡಲು ಕೆಳಗಿನ ಕಮಾಂಡ್ ಅನ್ನು ಚಲಾಯಿಸಿ:
dotnet run ./AzureSearch.cs
ಕೆಳಗಿನ .ನೆಟ್ ಮಾದರಿ DefaultAzureCredential ಬಳಸುತ್ತದೆ, ಇದು ನಿಮ್ಮ ಅಜೂರ್ CLI ಸೈನ್ ಇನ್ ಅನ್ನು ಸ್ಥಳೀಯ ಅಭಿವೃದ್ಧಿಯಲ್ಲಿ az login ನಿಂದ ಬಳಸಬಹುದು.
ಇದು AzureSearch.cs ನ .ನೆಟ್ ಕೋಡ್:
#:package Azure.Search.Documents@11.*
#:package Azure.Identity@1.21.0
#:property PublishAot=false
using Azure;
using Azure.Identity;
using Azure.Search.Documents;
using Azure.Search.Documents.Indexes;
using Azure.Search.Documents.Indexes.Models;
var serviceEndpoint = new Uri(Environment.GetEnvironmentVariable("AZURE_SEARCH_SERVICE_ENDPOINT")!);
var indexName = "sample-index";
// Keyless (recommended): uses your `az login` identity via Entra ID RBAC.
// Requires the "Search Service Contributor" and "Search Index Data Contributor" roles.
var credential = new DefaultAzureCredential();
// Fallback (key-based auth): the `using Azure;` directive above already imports
// AzureKeyCredential; replace the credential line above with:
// var credential = new AzureKeyCredential(Environment.GetEnvironmentVariable("AZURE_SEARCH_API_KEY")!);
var indexClient = new SearchIndexClient(serviceEndpoint, credential);
var fields = new List<SearchField>()
{
new SimpleField("id", SearchFieldDataType.String) { IsKey = true },
new SearchableField("content")
};
var index = new SearchIndex(name: indexName, fields: fields);
var response = await indexClient.CreateOrUpdateIndexAsync(index);
Console.WriteLine($"Index '{response.Value.Name}' ready.");
var searchClient = new SearchClient(serviceEndpoint, indexName, credential);
var documents = new[]
{
new { id = "1", content = "Hello world" },
new { id = "2", content = "Azure Cognitive Search" }
};
var result = await searchClient.UploadDocumentsAsync(documents);
Console.WriteLine($"Uploaded {result.Value.Results.Count} documents to index '{response.Value.Name}'.");
ಹೆಚ್ಚಿನ ವಿವರಗಳಿಗೆ, ಕೆಳಗಿನ ಡಾಕ್ಯುಮೆಂಟೇಶನ್ಗೆ ಸಂಬಂದಿಸಿ:
ನೀವು ಅಜೂರ್ ಪೋರ್ಟಲ್ ಬಳಸಿ ಅಜೂರ್ AI ಹುಡುಕಾಟವನ್ನು ಯಶಸ್ವಿಯಾಗಿ ಸ್ಥಾಪಿಸಿ, ಮತ್ತು ಇಂಟಿಗ್ರೇಟೆಡ್ ಉಪಕರಣಗಳನ್ನು ಬಳಸಿ. ಈಗ ನೀವು ಅಜೂರ್ AI ಹುಡುಕಾಟದ ಹೆಚ್ಚಿನ ಸುಧಾರಿತ ವೈಶಿಷ್ಟ್ಯಗಳು ಮತ್ತು ಸಾಮರ್ಥ್ಯಗಳನ್ನು ಅನ್ವೇಷಿಸಬಹುದು ನಿಮ್ಮ ಹುಡುಕಾಟ ಪರಿಹಾರಗಳನ್ನು ಇನ್ನೂ ಬೆಸುಗೆಮಾಡಲು.
ಹೆಚ್ಚಿನ ಸಹಾಯಕ್ಕಾಗಿ, Azure Cognitive Search documentation ಭೇಟಿ ನೀಡಿ.
ಅಸ್ವೀಕಾರ: ಈ ದಸ್ತಾವೇಜು AI ಅನುವಾದ ಸೇವೆ Co-op Translator ಬಳಸಿ ಅನುವಾದಿಸಲಾಗಿದೆ. ನಾವು ನಿಖರತೆಯನ್ನು ಸಾಧಿಸಲು ಪ್ರಯತ್ನಿಸುತ್ತಿದ್ದರೂ, ದಯವಿಟ್ಟು ಗಮನಿಸಿ, ಸ್ವಯಂಚಾಲಿತ ಅನುವಾದಗಳಲ್ಲಿ ದೋಷಗಳು ಅಥವಾ ಅಸಡ್ಡೆಗಳು ಇರಬಹುದು. ಮೂಲ ಭಾಷೆಯಲ್ಲಿರುವ ಮೂಲ ದಸ್ತಾವೇಜು ಪ್ರಾಮಾಣಿಕ ಮೂಲವೆಂದು ಪರಿಗಣಿಸಬೇಕು. ಪ್ರಮುಖ ಮಾಹಿತಿಗಾಗಿ, ವೃತ್ತಿಪರ ಮಾನವ ಅನುವಾದವನ್ನು ಶಿಫಾರಸು ಮಾಡಲಾಗುತ್ತದೆ. ಈ ಅನುವಾದವನ್ನು ಬಳಸುವ ಮೂಲಕ ಉಂಟಾಗುವ ಯಾವುದೇ ತಪ್ಪು ಅರ್ಥಗಳ ಅಥವಾ ತಪ್ಪು ವ್ಯಾಖ್ಯಾನಗಳ ಬಗ್ಗೆ ನಾವು ಹೊಣೆಗಾರರಲ್ಲ.