Replies: 1 comment 4 replies
-
Hey @koberghe! I'm here to help you with any bugs, questions, or contributions. Let's tackle this together! To make Jira ticket titles searchable in Azure AI Search using LlamaIndex, you can utilize the Here's how you can achieve this:
Here's an example setup: from azure.core.credentials import AzureKeyCredential
from azure.search.documents.indexes import SearchIndexClient
from llama_index.vector_stores.azureaisearch import AzureAISearchVectorStore
from llama_index.vector_stores.azureaisearch import IndexManagement, MetadataIndexFieldType
# Azure AI Search setup
search_service_api_key = "YOUR-AZURE-SEARCH-SERVICE-ADMIN-KEY"
search_service_endpoint = "YOUR-AZURE-SEARCH-SERVICE-ENDPOINT"
credential = AzureKeyCredential(search_service_api_key)
# Index name to use
index_name = "jira-index"
# Use index client to demonstrate creating an index
index_client = SearchIndexClient(
endpoint=search_service_endpoint,
credential=credential,
)
# Define metadata fields to be searchable
metadata_fields = {
"title": ("title", MetadataIndexFieldType.STRING),
# Add other fields as needed
}
# Creating an Azure AI Search Vector Store with searchable metadata fields
vector_store = AzureAISearchVectorStore(
search_or_index_client=index_client,
filterable_metadata_field_keys=metadata_fields,
hidden_field_keys=["embedding"],
index_name=index_name,
index_management=IndexManagement.CREATE_IF_NOT_EXISTS,
id_field_key="id",
chunk_field_key="chunk",
embedding_field_key="embedding",
embedding_dimensionality=1536,
metadata_string_field_key="metadata",
doc_id_field_key="doc_id",
language_analyzer="en.lucene",
vector_algorithm_type="exhaustiveKnn",
) This setup allows you to make the Jira ticket title searchable by configuring it as a metadata field with the appropriate type. This approach should help you effectively index Jira content in Azure AI Search and ensure that titles remain searchable across chunked documents [1]. |
Beta Was this translation helpful? Give feedback.
-
I am working on indexing Jira content into Azure AI Search using LlamaIndex. A critical requirement for my use case is to make the Jira ticket title searchable, as titles often include essential information necessary for effective retrieval.
What I’ve Tried:
Using JiraReader to load Jira content:
Exploring metadata fields:
Comparison to LangChain:
My Question:
Am I missing an obvious solution to this issue (also addressed here)? Is there a way in LlamaIndex to make metadata fields like title searchable, or is there a recommended workaround for ensuring Jira titles remain searchable across chunked documents, without modifying the library?
This feature feels crucial for effectively indexing Jira content in Azure AI Search. I’d appreciate any guidance or suggestions on how to handle this. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions