Bridge Note: PyVespa SDK, Sample Apps, and Documentation Schema Contracts
Conceptual Bridge
This note bridges client-side Python abstractions (pyvespa), reference application schemas (sample-apps), text editor syntax definitions (documentation/_grammars), and frontend search fetchers (vespa-search) with the engine’s Java config-model parser and HTTP/2 endpoints.
Synchronization Points
- Schema Generation and Validation:
pyvespa/vespa/package.pymodelsSchema,Document, andFieldconstructs in Python, generating.sdfiles that must strictly adhere to the grammar defined indocumentation/_grammars/vespa-schema.tmLanguage.jsonand parsed byvespa/config-model.
- HTTP API Contract Alignment:
pyvespa/vespa/application.pyandvespa-search/src/App/libs/fetcher/index.jsinteract with/document/v1/and/search/endpoints, requiring consistent serialization of tensor parameters (input.query(...)) and JSON document structures.
- Reference App Conformance:
- The 27 sample applications in
sample-apps/serve as operational templates demonstrating proper usage of rank profiles, tensor fields, and document processors.
- The 27 sample applications in