Logo van Dust Elasticsearch

Dust Elasticsearch

OrganisatiePopulair
dust-tt
dust-elasticsearch

Maak Elasticsearch-indexen in `front`, migreer ze of voer er query's op uit. Gebruik dit wanneer je een nieuwe Elasticsearch-index voor front toevoegt, mappings of instellingen wijzigt, indexeringslogica koppelt of analytics- of zoek-API-eindpunten op basis van Elasticsearch beschikbaar maakt.

Add to TypingMind

Overzicht

Uitgeverdust-tt
Repositorydust
Skillnaamdust-elasticsearch
Sterren
1.5K
Forks
370
Meegeleverde bestanden
5
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 5

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door dust-tt op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Dust Elasticsearch in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/dust-tt/dust/tree/main/.claude/skills/dust-elasticsearch
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dust-tt/dust.git /tmp/dust
mkdir -p .claude/skills
cp -r /tmp/dust/.claude/skills/dust-elasticsearch .claude/skills/dust-elasticsearch
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Dust Elasticsearch in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Dust Elasticsearch automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Dust Elasticsearch niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Front Elasticsearch

Use this skill when working on Elasticsearch-backed features in front. SKILL.md covers the default path for routine work. You should only load the supporting references when you need deeper material such as analyzer design, full curl verification, query recipes, or relocation details.

Default Workflow

  1. Decide whether you are:
    • adding a brand-new index
    • shipping a new version of an existing index
    • only changing indexing or querying logic on top of an existing alias
  2. Define the document type under front/types/....
    • Extend ElasticsearchBaseDocument for workspace-scoped indices instead of redeclaring workspace_id.
    • Keep a stable primary identifier in the document and include a migration-friendly timestamp such as updated_at when backfills or version bumps are likely.
  3. Create versioned mappings and per-region settings under front/lib/<feature>/indices/.
    • Prefer keyword for ids and enums, date for timestamps, numeric field types for metrics, nested only when array element relationships matter, and text only when full-text search is actually required.
  4. Register the stable alias and index directory in front/lib/api/elasticsearch.ts.
    • App code should read and write through the alias, not a concrete versioned index name.
  5. Create the physical index with tsx front/scripts/create_elasticsearch_index.ts.
    • The normal shape is front.<index_name>_<version> behind alias front.<index_name>.
  6. Add indexing helpers using deterministic document ids and alias-based writes.
    • The common pattern is ${workspaceId}_${entityId} or an equivalent deterministic key.
    • Use withEs(...) and client.index, client.update, or client.bulk.
  7. Add query helpers or endpoints.
    • Start with bool.filter.
    • Include workspace_id for workspace-scoped indices.
    • Use size: 0 for aggregation-only queries.
  8. If indexing is asynchronous or retry-prone, wire it through the shared Temporal ES queue.
  9. If the index must survive workspace relocation between regions, add the relocation activity and workflow hook.

Core Rules

  • Keep one mappings file per index version and one settings file per region.
  • Use version bumps for incompatible mapping or analyzer changes rather than mutating a live index in place.
  • Simple analytics indices usually do not need custom analyzers or Elasticsearch plugins.
  • If you need prefix search, multi-field mappings, ICU analyzers, or email-aware tokenization, read references/create-index.md before editing mappings.
  • Prefer async indexing through front/temporal/es_indexation/* when the write path does not need to block on Elasticsearch freshness.
  • Check relocation requirements for any workspace-scoped index that is expected to remain available after workspace region moves.

Current Architecture

This skill focuses on Elasticsearch indices managed in front, especially analytics-style indices, but the patterns also match the broader Dust Elasticsearch setup.

Current examples to copy from:

  • front.agent_message_analytics
    • version 2
    • write alias front.agent_message_analytics
    • basic mappings, no custom analyzers
  • core.data_sources_nodes
    • version 4
    • write alias core.data_sources_nodes
    • advanced analyzers, edge n-grams, multi-field mappings, and normalizers

The general pattern is:

  • versioned physical indices such as front.<index_name>_<version>
  • one stable alias such as front.<index_name> for app reads and writes
  • mappings and region-specific settings stored alongside the feature code

Primary Files

  • front/lib/api/elasticsearch.ts
  • front/scripts/create_elasticsearch_index.ts
  • front/lib/*/indices/*.mappings.json
  • front/lib/*/indices/*.settings.{region}.json
  • front/temporal/es_indexation/*
  • front/temporal/relocation/activities/destination_region/front/es_indexation.ts
  • front/temporal/relocation/workflows.ts

Existing References In Code

  • front/lib/user_search/indices/
  • front/lib/user_search/index.ts
  • front/lib/analytics/indices/
  • core/src/search_stores/indices/data_sources_nodes_4.*

Validation

  • The document type and mappings agree on field names and field kinds.
  • The index has a stable alias constant and an INDEX_DIRECTORIES entry.
  • The version in the script invocation matches the versioned mappings/settings filenames.
  • Writes target the alias constant rather than a concrete versioned index name.
  • Query helpers filter by workspace_id when the index is workspace-scoped.
  • Aggregation-only queries use size: 0.
  • Temporal integration exists when indexing is asynchronous or needs retries.
  • Relocation support exists when the index must be rebuilt in a destination region.

Supporting References

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Dust Elasticsearch?

Maak Elasticsearch-indexen in `front`, migreer ze of voer er query's op uit. Gebruik dit wanneer je een nieuwe Elasticsearch-index voor front toevoegt, mappings of instellingen wijzigt, indexeringslogica koppelt of analytics- of zoek-API-eindpunten op basis van Elasticsearch beschikbaar maakt.

Waarom Dust Elasticsearch gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Dust Elasticsearch bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Dust Elasticsearch in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/dust-tt/dust/tree/main/.claude/skills/dust-elasticsearch. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Dust Elasticsearch gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Dust Elasticsearch gebruiken?

Zoveel als je wilt. Je kunt Dust Elasticsearch gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Dust Elasticsearch gratis?

Ja. Deze skill is door dust-tt op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇