Configures Elasticsearch as the vector indexing and retrieval backend for CrestApps Orchard Core AI Documents. Covers index profiles, embedding deployments, dense vector mappings, k-nearest-neighbor retrieval, and scoped RAG results.
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 vector indexing and retrieval backend for CrestApps AI Documents. Use the provider-created index profile, embedding dimensions, and reference-scoped retrieval rather than hand-written queries.
CrestApps.OrchardCore.AI.Documents.Elasticsearch.ChatInteractionsConstants.Feature.ChatDocuments and on OrchardCore.Elasticsearch; the base document feature is enabled by dependency.textEmbedding before creating or reindexing the profile.IVectorSearchService using ElasticsearchConstants.ProviderName.| Registration | Purpose |
|---|---|
AIDocumentElasticsearchIndexProfileHandler | Defines chunk fields, dense vectors, and default textual fields. |
AIDocumentElasticsearchDocumentIndexHandler | Maps document chunk records into Elasticsearch documents. |
ElasticsearchVectorSearchService | Runs filtered k-nearest-neighbor chunk retrieval. |
AddElasticsearchIndexingSource | Adds AI documents (Elasticsearch) to Search > Indexes. |
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.AI.Documents.ChatInteractions",
"CrestApps.OrchardCore.AI.Documents.Elasticsearch",
"OrchardCore.Elasticsearch"
],
"disable": []
}
]
}
Enable CrestApps.OrchardCore.AI.Documents.Pdf or
CrestApps.OrchardCore.AI.Documents.OpenXml separately for optional extraction
support. These processor features are not required by Elasticsearch itself.
textEmbedding capability; the
picker lists deployments in the embedding slot only (see orchardcore-ai-model-capabilities).DataSourceIndexProfileMetadata.EmbeddingDeploymentName and locked once the index exists.Changing embeddings after data has been indexed can make existing vectors incompatible. Create a compatible new index and reindex rather than mixing different dimensions.
AIDocumentElasticsearchIndexProfileHandler configures:
| Field | Elasticsearch mapping |
|---|---|
chunkId | Keyword and index key field |
documentId | Keyword |
content | Text |
fileName | Keyword |
referenceId | Keyword |
referenceType | Keyword |
chunkIndex | Integer |
embedding | Indexed dense_vector with cosine similarity |
The dense vector dimensions come from the profile's selected embedding deployment.
When no default Elasticsearch query fields exist, the handler sets content as the
default textual search field. Keep chunkId stable so indexing updates and deletes
target the correct document.
ElasticsearchVectorSearchService performs k-nearest-neighbor search over
embedding in the selected index. It requests K = topN and NumCandidates = topN * 10
and applies a Boolean filter requiring both:
referenceId equals the active document context IDreferenceType equals the active context typeThe service reads content, chunk index, document ID, and file name from each hit,
sorts by score descending, and returns no more than topN chunks. Invalid Elasticsearch
responses and exceptions are logged and yield an empty result set.
ElasticsearchVectorSearchService with the Elasticsearch provider key.IndexFullName and applies the two context filters.{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.AI.Documents.ChatSessions",
"CrestApps.OrchardCore.AI.Documents.Elasticsearch",
"CrestApps.OrchardCore.AI.Documents.Pdf"
],
"disable": []
}
]
}
This enables session document upload, Elasticsearch retrieval, and PDF extraction. Configure the index profile and embedding deployment in the admin UI afterward.
| Symptom | Check |
|---|---|
| Index source is absent | Confirm OrchardCore.Elasticsearch and the exact document backend feature are enabled. |
| Index mapping rejects vectors | Ensure the selected embedding dimensions match the generated dense_vector mapping and target Elasticsearch capabilities. |
| RAG produces no sources | Verify indexing completed, content is non-empty, and the document context selects this profile. |
| Expected chunks are missing | Verify referenceId and referenceType; the service deliberately filters both. |
| Search errors appear in logs | Check endpoint, authentication, TLS, index availability, and application network access. |
| Text search behavior is unexpected | Inspect the profile default query metadata; this handler defaults it to content only when no fields are already selected. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchard-core, elasticsearch, vector-search, ai-documents, rag
/crestapps-orchardcore:orchardcore-ai-documents-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