Configures Elasticsearch as the vector backend for CrestApps Orchard Core AI Memory, covering field mappings, dense vectors, k-nearest-neighbor retrieval, user isolation, and provider registrations.
Ships in crestapps-orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an Orchard Core expert. Configure Elasticsearch as the persistent AI Memory vector backend while maintaining user isolation, stable provider mappings, and embedding compatibility.
CrestApps.OrchardCore.AI.Memory.Elasticsearch.CrestApps.OrchardCore.AI.Memory and OrchardCore.Elasticsearch; the base memory feature is enabled by dependency.IMemoryVectorSearchService using ElasticsearchConstants.ProviderName.userId.| Registration | Purpose |
|---|---|
AIMemoryElasticsearchIndexProfileHandler | Defines memory mappings, vector dimensions, and default search fields. |
AIMemoryElasticsearchDocumentIndexHandler | Maps persisted memory records to Elasticsearch documents. |
ElasticsearchMemoryVectorSearchService | Runs user-filtered k-nearest-neighbor queries. |
AddElasticsearchIndexingSource | Adds AI memory (Elasticsearch) at Search > Indexes. |
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.AI",
"CrestApps.OrchardCore.AI.Memory.Elasticsearch",
"OrchardCore.Elasticsearch"
],
"disable": []
}
]
}
The core AI Memory feature comes from the provider dependency. Use the Azure AI Search provider instead when that is the selected index service; do not configure both as masters unless the application intentionally manages separate indexes and migration.
textEmbedding; the picker lists deployments in the embedding slot only (see orchardcore-ai-model-capabilities).DataSourceIndexProfileMetadata.EmbeddingDeploymentName and becomes read-only once the index exists.The profile's embedding deployment defines dense-vector dimensions. If dimensions change, create a new compatible index and reindex instead of mixing incompatible vectors.
| Field | Elasticsearch mapping |
|---|---|
memoryId | Keyword and index key |
userId | Keyword |
name | Text |
description | Text |
content | Text |
updatedUtc | Date |
embedding | Indexed dense_vector using cosine similarity |
The handler uses selected embedding dimensions for embedding. When the profile has
no default Elasticsearch query fields, it assigns name, description, and content.
Do not change the key field away from memoryId; indexing updates and deletions depend
on the stable identifier.
ElasticsearchMemoryVectorSearchService searches the profile IndexFullName with:
embedding as the k-nearest-neighbor fieldK = topNNumCandidates = topN * 10userId term filter for the current authenticated userIt maps memory ID, name, description, content, updated time, and score from each hit.
Results without content are discarded, then remaining results are ordered by score and
limited to topN. Invalid responses and exceptions are logged and produce an empty
result set.
userId.| Symptom | Check |
|---|---|
| AI Memory index source is absent | Enable OrchardCore.Elasticsearch and the exact provider feature. |
| Index rejects a mapping | Verify Elasticsearch version support and the selected embedding vector dimensions. |
| No memories are returned | Verify an authenticated identity, selected master profile, saved records, and index health. |
| Search error is logged | Inspect Elasticsearch endpoint, TLS, credentials, index availability, and network access. |
| Results cross user boundaries | Stop and correct the query. Preserve the mandatory userId term filter. |
| Textual memory queries behave unexpectedly | Review default query metadata; the handler assigns Name, Description, and Content only when no defaults exist. |
The provider handler initializes, creates, and updates Elasticsearch index profiles. It sets mapping metadata only for profiles it can handle:
memoryId as the key and the userId keyword mapping for filtering.Add custom fields only with new names. Do not replace the dense_vector field,
change its cosine similarity setting, or remove userId from an index that backs
shared authenticated-user memory.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/crestapps-orchardcore:orchardcore-ai-memory-elasticsearchfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts.Other plugins' skills for the same job