Перейти к содержанию
НОВОЕМаркетплейс и trig8n Agent: продавайте то, что создали, и получайте планы и изменения, проверенные до того, как вы их увидите. Что нового

Библиотека / RAG и базы знаний

RAG и базы знаний

Эмбеддинг писем Gmail в PGVector с Ollama

При новом письме или ручном запуске письма преобразуются в эмбеддинги с помощью Ollama и сохраняются в Postgres с PGVector для семантического поиска.

Что делает

## Magic here 🪄 #### (not really, just statistics) E-mail is stored in a emails_metadata structured table, and also fed to the nomic-embed-text model to be stored in a emails_embeddings table as vector embeddings so similarity searches are possible. The email_id field can be used to make the relation between the structured records and the vector embeddings, as it's stored in their metadata as emails_metadata.id. This is also the case for thread_id.

Шаги

  1. Embeddings Ollama
  2. Default Data Loader
  3. Recursive Character Text Splitter
  4. Gmail Trigger
  5. Loop Over Items
  6. Split Out
  7. Was manually triggered?
  8. Manual Trigger
  9. No Operation, do nothing
  10. Set before and after dates
  11. Extract email fields
  12. Store structured
  13. Store vectorized
  14. Create the table

Всего шагов: 16.

Похожие автоматизации