• Embeddings are cached inside find_relevant_content_wordpress and find_relevant_products_wordpress, but the cache is never cleared. Cache entries are set to expire after 1 hour, but this is not sufficient. Instead, they should be cleared whenever the knowledge database is updated.

    Would be happy to help with this, but I can’t find a GitHub repo.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter samymsa

    (@samymsa)

    Actually, the embeddings should probably never be cached, because if the prompt is not the same, the relevant content will not be the same (and so for current_valid_urls)

    For now I clear the cache on every request. I suggest either not caching the embeddings at all or rework the caching logic.

    Plugin Support m4xw3ll

    (@m4xw3ll)

    Hi @samymsa reviewing this information and will touch base once finished!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.