Skip to content

fix: use correct getCachedEmbeddings query_field_sub_name#607

Merged
shakkernerd merged 1 commit into
elizaOS:mainfrom
bmgalego:fix-db-getCachedEmbeddings
Nov 26, 2024
Merged

fix: use correct getCachedEmbeddings query_field_sub_name#607
shakkernerd merged 1 commit into
elizaOS:mainfrom
bmgalego:fix-db-getCachedEmbeddings

Conversation

@bmgalego
Copy link
Copy Markdown
Contributor

to get cached embeddings the db adapter looks for the sub_name of the memory content and the correct key is text not content.

interface Content {
    /** The main text content */
    text: string;

    /** Optional action associated with the message */
    action?: string;

    /** Optional source/origin of the content */
    source?: string;

    /** URL of the original message/post (e.g. tweet URL, Discord message link) */
    url?: string;

    /** UUID of parent message if this is a reply/thread */
    inReplyTo?: UUID;

    /** Array of media attachments */
    attachments?: Media[];

    /** Additional dynamic properties */
    [key: string]: unknown;
}

@shakkernerd
Copy link
Copy Markdown
Contributor

Nice catch.

@shakkernerd shakkernerd merged commit 63ab897 into elizaOS:main Nov 26, 2024
lalalune pushed a commit that referenced this pull request May 3, 2026
fix: use correct getCachedEmbeddings query_field_sub_name
FranceFlapjack pushed a commit to FranceFlapjack/eliza that referenced this pull request May 16, 2026
fix: use correct getCachedEmbeddings query_field_sub_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants