Skip to content

Why doesn't SemanticTextMemory.SaveSaveReferenceAsync store the text? #438

Closed Answered by awharrison-28
xbotter asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @xbotter.

Context: there are 2 save methods associated with SemanticTextMemory - SaveReference and SaveInformation.

SaveReference is intended to save information from a known source - this way you can store an embedding and recreate it from the source without having to take up space also storing the source text.

SaveInformation is intended to save information where the source text cannot be referenced.

Scenario Examples:
SaveReference( collection: "Semantic Kernel GitHub", externalId: "https://github.com/microsoft/semantic-kernel/discussions/438", sourceName: "Semantic Kernel Discussions", text: text, description: "Why doesn't SemanticTextMemory.SaveReference store the text?")

Where t…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@xbotter
Comment options

@afederici75
Comment options

Answer selected by xbotter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants