SearchSourceText

SearchSourceText(stringquery,inttopK,stringsourceName,intcontextSize)

Naturallanguage semantic search over the classical Vedic astrology sourcetext knowledge base e.g. Hindu Predictive Astrology BPHS. Returns topK most relevant passages with sourceName pageNumber chunkIndex text and similarity score. Powered by the same DashScope embeddings Cosmos DB vector index used by ContextBasedAstrologyDatas RAG enrichment step.

Parameters

NameTypeDescription
query String PlainEnglish question or topic e.g. effects of Saturn in 7th house.
topK Int32 Max passages to return default 5 capped at 20.
sourceName String Optional source text to filter by e.g. BrihatParasharaHoraShastra. If nullempty searches all sources.
contextSize Int32 Characters of surrounding text to include before and after each matched passage default 600 max 2000.

Calling this method

Endpoint base: https://api.vedastro.org/api/Calculate/SearchSourceText

Most Calculate methods accept parameters either as URL path segments (GET) or as a JSON body (POST), keyed by parameter name. The exact request shape varies per method — see the Getting Started guide for the response envelope, StdTime format, and Ayanamsa conventions that apply across the API. Use the "Try it" panel below to build and send a real request and see the exact call this method expects.

Loading try-it widget…