Upsert huge documents in a vector store

Поделиться
HTML-код
  • Опубликовано: 12 дек 2024

Комментарии • 11

  • @Ejik0001
    @Ejik0001 14 дней назад

    Thank you so much for the template. It's exactly what I was looking for! I followed everything, and it works perfectly.

    • @octionic
      @octionic  14 дней назад

      Glad it helped!

  • @seanolivas9148
    @seanolivas9148 9 дней назад +1

    Would this workflow be good for slack knowledge base employee onboarding Q&A? Should I add or remove anything for this use case?

    • @octionic
      @octionic  8 дней назад

      You mean, using Notion as knowledge base but having Slack as the interface for chatting with it? In that case, you would only need to change the retrieval part. So more or less just replace the chat trigger with a Slack trigger and send the response of the AI node back to the same Slack chat, by adding another node.

  • @cadenceworks
    @cadenceworks 9 дней назад

    This is great, thanks Mario. Just to clarify, does this flow handle updates in multiple pages as well?

    • @octionic
      @octionic  9 дней назад

      You mean multiple pages of a Notion DB? Yes, the trigger is watching on all page updates.

    • @cadenceworks
      @cadenceworks 8 дней назад

      @@octionic It works well, thank you. I did notice it doesn't capture and vectorize the contents of tables in a notion page or at least, I could not get it to recognize this context.

    • @octionic
      @octionic  7 дней назад

      @cadenceworks I see. That has to do with the return value of the Notion Node. For simplicity I used the "Also Fetch Nested Blocks" option and then used the content field to get all the text. However it does not include everything. You would need to parse the table_row field as well. Most probably it would require you to replace the Summarize Node by a Code Node.

    • @cadenceworks
      @cadenceworks 7 дней назад +1

      @@octionic I will take a look. I think that particularly in KB applications, parts of the data might be organized in a structure like tables - as opposed to plain text.
      Also FYI - Notion just released webhooks for their paid plans. That makes triggering a bit simpler as well.

  • @RamonTomzer
    @RamonTomzer 3 дня назад

    what happens you delete the entire document in notion? for instance if you decided that you no longer needed one of the documents in the RAG knowledge? is there a way to automate that removal from supabase?

    • @octionic
      @octionic  3 дня назад

      @RamonTomzer unfortunately neither n8n nor Notion (new webhook feature) does offer a trigger for that. You would need to store a list of Notion page ID's somewhere and frequently get and compare all existing Notion pages against it. It is not an efficient solution but it should work.