crestapps/crestapps.agentskills/crestapps-core-data-sources
Claude Code and agent skill by crestapps/crestapps.agentskills
- community
Checking that the SKILL.md file is still in the repository.
Skill for CrestApps.Core 2.0 AI data sources and search-backed RAG in any ASP.NET Core host. Covers the AIDataSource source and knowledge-base model, the SearchIndexProfile, Elasticsearch, AzureAISearch, PostgreSQL, Web and File source types, AddAIDataSources and AddCoreAIDataSourceRag, the asynchronous synchronization queue and IAIDataSourceChangeNotifier, custom IAIDataSourceSourceHandler implementations, typed knowledge columns contentType, rootId, parentId and page, OData filters and IOData…
Install
npx vskill@latest install crestapps/crestapps.agentskills/crestapps-core-data-sourcesSKILL.md
The same SKILL.md was published earlier as crestapps/crestapps.agentskills/crestapps-core-data-sources.
CrestApps.Core Data Sources
An AIDataSource connects a source (where raw documents come from) to a knowledge base (a vector index profile holding chunked, embedded rows). AI profiles and chat interactions attach a data source for preemptive RAG and the search_data_sources tool, and tool instances can expose several data sources side by side.
Pick a backend skill for the vector store: crestapps-core-elasticsearch, crestapps-core-azure-ai-search or crestapps-core-postgresql. For uploads see crestapps-core-document-processing. For the record types that fill Web and File data sources see crestapps-core-web-crawlers and crestapps-core-file-sources.
Source Types
AIDataSourceSourceTypes (namespace CrestApps.Core.AI.Models):
| Constant | Reads | Kept in step by | |
|---|---|---|---|
SearchIndexProfile | a CrestApps-managed source index profile | automatic, when writes go through ISearchDocumentManager | |
Elasticsearch | an external Elasticsearch index with per-data-source credentials | IAIDataSourceChangeNotifier | |
AzureAISearch | an external Azure AI Search index | IAIDataSourceChangeNotifier | |
PostgreSQL | an external PostgreSQL table | IAIDataSourceChangeNotifier | |
Web | pages from web crawler records (AddCoreWebCrawlers()) | scheduled re-crawl | |
File | typed knowledge objects from file source records (AddCoreFileSources()) | scheduled runs |
AIDataSource stores Source, AIKnowledgeBaseIndexProfileName, SourceIndexProfileName and the field mapping KeyFieldName, TitleFieldName, ContentFieldName. Web and File data sources need no field mapping because every row already carries its key, title and content. Source credentials go on AIDataSource.Properties, protected with AIDataSourceProtectionConstants.SourceSecretPurpose.
Registration
AddAIDataSources()on a backend builder registers theDataSourceindex-profile source, the keyed backendIAIDataSourceSourceHandler, and callsAddCoreAIDataSourceRag().AddCoreAIDataSourceRag()registersIAIDataSourceIndexingQueue(in-memory channel),IAIDataSourceChangeNotifier,IAIDataSourceIndexingService, theSearchIndexProfilesource handler,AIDataSourceCatalogHandler,AIDataSourceSearchDocumentHandler,AIDataSourceIndexingBackgroundService,AIDataSourceAlignmentBackgroundService(nightly 2:00 AM UTC reconciliation),DataSourceOrchestrationHandler,DataSourcePreemptiveRagHandlerand thesearch_data_sourcessystem tool.- The document-processing builder's
AddYesSqlStores()/AddEntityCoreStores()also registers the data source store. - A metadata store alone is not a backend. Register a real backend and call its
AddAIDataSources().
Synchronization
- Creating, editing or deleting an
AIDataSourcequeues a full rebuild or cleanup throughAIDataSourceCatalogHandler. SearchIndexProfilesources sync automatically fromISearchDocumentHandlernotifications.- External and custom sources must notify the framework.
Replace IAIDataSourceIndexingQueue for a durable or multi-node queue. Set Trace logging on CrestApps.Core.AI categories to follow queue and alignment activity.
Custom Sources
Register a keyed IAIDataSourceSourceHandler and a descriptor in AIDataSourceSourceOptions. See references/custom-source-examples.md for a complete, compiling handler and sync bridge.
IAIDataSourceSourceHandler.ProducesTypedKnowledge defaults to false; only the File handler returns typed knowledge objects.
Typed Knowledge Columns
Every knowledge-base row now carries contentType (document, article, text, figure, chart, table), rootId, parentId and page. Rows from non-File sources carry contentType = "text", and every reader treats a missing value as text, so older indexes keep working.
ISearchIndexManager.TryAddFieldsAsync(default-implemented) adds the columns to an existing index on the next sync. PostgreSQL, Elasticsearch and Azure AI Search support it.IDataSourceContentManager.DeleteByReferenceIdsAsync(default-implemented) deletes a reference's rows by predicate.SourceDocument.IsPreChunkedstores a row as one chunk with no title prefix.- OData translators map
contentType,rootId,parentIdandpageto the real columns, andcontentType eq nullis a null test. Other fields still target the per-row filter bag.
Retrieval Settings
AIDataSourceRagMetadata on an AI profile or chat interaction: Strictness, TopNDocuments, IsInScope, Filter (OData) and ObjectTypes (for example ["figure", "chart"]). Preemptive RAG and search_data_sources read it through one shared resolver, so both apply the same filter, strictness and top N. ObjectTypes becomes part of the filter. Asking for text also admits rows with no contentType.
When a filter is set and no keyed IODataFilterTranslator exists for the knowledge base provider, both paths log a warning and search without it. The chat interaction hub validates filters with IODataValidator.
Data Source Search Tool Instances
AddDataSourceSearchSource() (source name data-source-search, category Knowledgebase) turns one data source into its own model-callable function, so several knowledge bases can be offered at once.
- Queries are embedded with the knowledge base's own embedding deployment (
SearchIndexProfile.EmbeddingDeploymentName, orDataSourceIndexProfileMetadata.EmbeddingDeploymentName). - One call may carry up to three phrases, embedded in one batch, searched in parallel and merged with Reciprocal Rank Fusion.
Hierarchicalreturns each matching document's full text through its source handler and falls back to chunks when it cannot.- A
contentTypesargument lets the model narrow, never widen, what the instance searches. AddKnowledgeObjectSource()andAddKnowledgeObjectListSource()(inCrestApps.Core.AI.Documents.Tooling) read or list one article, figure, chart or table by the identifier a search reported.
Figures in Answers
Retrieval over a File data source renders figures and tables in their own blocks with short labels such as [fig:1] and [tbl:1]. The model writes the label, and the chat client replaces it with the picture registered under that marker (AICompletionReference.IsImage). The address comes from IAIReferenceLinkResolver (RetrievedFigure.Link), and MCP clients read RetrievedFigure.Uri (crestapps://datasource/{dataSourceId}/figure/{canonicalId}). Register AddCoreAIDocumentReferenceDownloads() and map AddDownloadKnowledgeFigureEndpoint() so figures have a servable address. Citations that print the same line and link are merged into one.
Upgrading from 1.x
AIDataSourceSourceTypes.Ingestedis renamedFile, withFileAIDataSourceSourceHandlerandFileReferenceLinkResolver. A data source saved under a preview build with sourceIngestedmust be rewritten toFile.- The Files entry in the data source picker is registered by
AddCoreFileSources(), and Web byAddCoreWebCrawlers(). TheFileread-side handler is registered byAddCoreAIDocumentIngestion(). - The manual Upload files action on a data source is gone. Use a file source, or call
IKnowledgeIngestionServicefrom code. - Custom
ISearchIndexManagerandIDataSourceContentManagerimplementations keep compiling. OverrideTryAddFieldsAsyncandDeleteByReferenceIdsAsyncto support typed columns and efficient deletes. - Embedding deployments are resolved through the
embeddingslot; deploymentPurposeno longer exists.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/CrestApps.AgentSkills/crestapps-core/crestapps-core-data-sources/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/crestapps/crestapps.agentskills/crestapps-core-data-sources)