Zum Inhalt springen
NEUMarktplatz und trig8n Agent: Verkaufen Sie, was Sie bauen, und erhalten Sie Pläne und Änderungen, die getestet sind, bevor Sie sie sehen. Neuigkeiten ansehen

Bibliothek / RAG & Wissensdatenbanken

RAG & Wissensdatenbanken

Gmail-E-Mails mit Ollama in PGVector einbetten

Bei einer neuen E-Mail oder manuellem Start werden E-Mails mit Ollama eingebettet und für die semantische Suche in Postgres mit PGVector gespeichert.

Was sie bewirkt

## 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.

Die Schritte

  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

Insgesamt 16 Schritte.

Ähnliche Automatisierungen