Skip to content

Commit 1feb88c

Browse files
dynamic project_index specific to search
1 parent 63b4c17 commit 1feb88c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/api/agents/conversation_agent_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async def get_agent(cls) -> AzureAIAgent:
2020
creds = DefaultAzureCredential()
2121
client = AzureAIAgent.create_client(credential=creds, endpoint=ai_agent_settings.endpoint)
2222

23-
agent_name = "ConversationKnowledgeAgent"
23+
agent_name = "KM-ConversationKnowledgeAgent"
2424
agent_instructions = '''You are a helpful assistant.
2525
Always return the citations as is in final response.
2626
Always return citation markers exactly as they appear in the source data, placed in the "answer" field at the correct location. Do not modify, convert, or simplify these markers.

src/api/agents/search_agent_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async def get_agent(cls) -> dict:
3535
)
3636

3737
project_index = project_client.indexes.create_or_update(
38-
name=f"project-index-{azure_ai_search_index_name}",
38+
name=f"project-index-{azure_ai_search_connection_name}-{azure_ai_search_index_name}",
3939
version="1",
4040
body={
4141
"connectionName": azure_ai_search_connection_name,
@@ -56,7 +56,7 @@ async def get_agent(cls) -> dict:
5656

5757
agent = project_client.agents.create_agent(
5858
model=deployment_model,
59-
name="ChatWithCallTranscriptsAgent",
59+
name="KM-ChatWithCallTranscriptsAgent",
6060
instructions="You are a helpful agent. Use the tools provided and always cite your sources.",
6161
tools=ai_search.definitions,
6262
tool_resources=ai_search.resources,

0 commit comments

Comments
 (0)