Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No working: GetMessageContext: Invalid URI: The format of the URI could not be determined #9708

Open
bpw320 opened this issue Nov 14, 2024 · 3 comments
Assignees
Labels
ai connector Anything related to AI connectors bug Something isn't working memory

Comments

@bpw320
Copy link

bpw320 commented Nov 14, 2024

in your example:

private static IReadOnlyList GetCitations(ChatMessageContent chatMessageContent)
{
var message = chatMessageContent.InnerContent as OpenAI.Chat.ChatCompletion;

 var messageContext = message.GetMessageContext();
     
    

 return messageContext.Citations;

}

 var messageContext = message.GetMessageContext();

return an error: Invalid URI: The format of the URI could not be determined

I am not sure if it is a bug or not, but it did not work

Thanks

@bpw320 bpw320 added the bug Something isn't working label Nov 14, 2024
@bpw320
Copy link
Author

bpw320 commented Nov 15, 2024

turns out I used an index for UrlFieldName in DataSourceFieldMappings caused the error, my other question is, I have a bunch of indexes, how do I get their values? ChatCitation only has a few properties, Title, Chunkid, FilePath.etc. Thanks

@dmytrostruk
Copy link
Member

@bpw320 Thanks for your question! Could you please specify what do you mean by index values?

If you are interested in getting actual property values from Azure AI Search index, I'm not sure if it's possible to receive it directly from ChatCitation, but it should be possible to get an index data by using Azure AI Search directly in combination with ChatCitation.ChunkId. Please let me know if that helps.

Thanks!

@bpw320
Copy link
Author

bpw320 commented Nov 20, 2024

Thanks for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai connector Anything related to AI connectors bug Something isn't working memory
Projects
Status: Bug
Development

No branches or pull requests

3 participants