ZTABS builds RAG systems for Barcelona enterprises working with complex document corpora in pharmaceutical, financial services, legal and technology sectors. Barcelona's pharmaceutical industry generates extensive regulatory documentation following CTD (Common Technical Document) structure, with major companies maintaining submission archives spanning thousands of documents per product. Trilingual Spanish-Catalan-English business communications create distinctive retrieval challenges. CaixaBank and Sabadell drive financial services knowledge management needs. ZTABS is remote-first by design from our Houston, Texas office.
Catalonia's data protection authority APDCAT has competence based on the specific processing activity, entity type and public-service nexus, while AEPD handles private sector enforcement. RGPD applies directly as EU Regulation with LOPDGDD as Spanish supplementary law. This regulatory landscape requires RAG architectures that correctly map data processing to the applicable supervisory authority.
RAG development in Barcelona at a glance
| Need | What we build | Key requirement |
|---|
| Pharma regulatory | CTD submission retrieval | Module-level hierarchy, version tracking |
| Financial services | Banking knowledge search | RGPD compliance, access controls |
| Legal research | Spanish and Catalan law | Trilingual retrieval |
| Tourism and hospitality | Service knowledge management | Multilingual customer service |
| Technology | Engineering documentation | Cross-team knowledge sharing |
Pharmaceutical regulatory retrieval
Barcelona pharma companies need RAG covering CTD submissions and regulatory documentation.
CTD module-level retrieval. Common Technical Document five-module structure indexed with section-level granularity. Module 1 (Administrative), Module 2 (Summaries), Module 3 (Quality), Module 4 (Nonclinical) and Module 5 (Clinical) each with distinct document types and cross-references. Section-level metadata preserves the regulatory hierarchy enabling targeted retrieval within specific CTD sections.
Cross-module synthesis. Queries retrieve across CTD modules simultaneously. A safety query returns relevant nonclinical data (Module 4), clinical safety data (Module 5) and quality specifications (Module 3). Cross-reference resolution follows chains between modules.
Submission variant tracking. Multiple product submissions, variations and renewals tracked with version history. Regulatory authority feedback and response documents linked to original submissions. Country-specific submission requirements differentiated within shared CTD base.
AEMPS and EMA regulatory. Spanish medicines agency (AEMPS) guidance alongside European Medicines Agency (EMA) guidelines indexed. Cross-reference between national and EU-level regulatory requirements. Post-marketing safety documentation searchable.
Clinical study reports. CSR archives searchable by indication, study phase, endpoint type and outcome. Investigator brochure content accessible. Protocol amendments tracked with version history.
Building a RAG system for your Barcelona pharma operations?
Tell us about your CTD submission archive, regulatory document volume and trilingual requirements. We start with a data audit covering pharma document hierarchy, format complexity and access patterns.
Financial services knowledge management
Barcelona financial institutions need RAG for banking operations and compliance.
Banking regulatory. Spanish banking regulatory documentation from Banco de Espana, CNMV and European regulatory bodies indexed. Cross-reference resolution between primary legislation, implementing regulations and supervisory guidance. MiFID II investment services documentation searchable.
Internal banking knowledge. Product documentation, credit policies, risk assessment guidelines and operational procedures searchable. Branch-level documentation access. Compliance documentation retrieval for audit preparation.
Trilingual retrieval architecture
Barcelona enterprises need Spanish-Catalan-English trilingual retrieval.
Cross-lingual embedding. Multilingual embedding models encode Spanish, Catalan and English into shared semantic space. Catalan institutional terminology handled alongside Castilian Spanish. A query in Catalan about regulatory compliance retrieves relevant Spanish and English regulatory documents.
Catalan-specific content. Generalitat de Catalunya publications, APDCAT decisions, Catalan commercial registry documents and municipal regulations in Catalan. Catalan legal and institutional terminology distinct from Spanish equivalents handled correctly. Official-language context does not constitute a mandatory Catalan-only commitment; agreed UI, corpus and staff languages specified separately.
Tourism and hospitality multilingual. Barcelona tourism sector documentation in Spanish, Catalan, English, French and German. Customer service knowledge bases with multilingual FAQ and procedure documentation.
RGPD and regulatory compliance
RGPD and LOPDGDD. RGPD applies directly as EU Regulation. LOPDGDD provides Spanish supplementary provisions including employee data processing, video surveillance and credit information. Both RGPD and LOPDGDD requirements implemented in RAG architecture.
APDCAT competence. APDCAT competence depends on the specific processing activity, entity type and public-service nexus. Not all private university processing is automatically AEPD and not all processing in Catalonia is automatically APDCAT. RAG systems correctly identify applicable supervisory authority based on data controller category and activity.
LSSI marketing. LSSI Article 21 requires prior consent for commercial electronic communications. An alternative permits marketing to existing customers for the sender's own similar products where the customer was informed and given clear opt-out at collection AND in each subsequent message. No professional-relevance B2B exception applies under LSSI. RAG systems generating marketing must implement applicable conditions.
RRSIF, SII and VeriFactu. RRSIF is the billing-software regulation with phased obligations from January and July 2027. SIF is the system. VeriFactu and non-VeriFactu are the two compliant operational modes. SII taxpayers, both obligatory and voluntary, are excluded from RRSIF. SII record submission has near-real-time deadlines separate from the VAT return period: generally four days from issuance for issued invoices, eight days for third-party or customer-issued records, and four days from accounting entry for received invoices, excluding Saturdays, Sundays and national holidays. Applicable before-the-sixteenth caps differ for issued versus received records. Voluntary SII filers retain quarterly VAT returns but submit invoice records within these deadlines. RAG systems handling invoice documentation accommodate applicable electronic formats.
Source ingestion and retrieval architecture
Ingestion provenance. Every document tracked from source through parsing, chunking and embedding with provenance metadata. Pharma CTD documents with module and section metadata. Regulatory document version tracking. Banking document classification. Source date and version tracked for currency.
Trilingual handling. Spanish, Catalan and English document processing with multilingual embedding. Catalan morphology handled alongside Castilian Spanish. Technical pharmaceutical terminology in English within Spanish or Catalan prose.
Hybrid search. BM25 for exact terms (CTD section references, regulation numbers, case citations, product codes, ISIN numbers) combined with trilingual semantic search. Catalan-specific terminology matching. Reranking with cross-encoder models evaluated on trilingual quality.
Chunking strategy. CTD documents chunked by section preserving module hierarchy. Legal documents chunked by article with cross-reference preservation. Banking documents chunked by product and policy topic. Regulatory documents chunked by provision with authority context.
Security and access control
EU data residency and processing scope. RAG infrastructure deployed in EU cloud regions. EU hosting alone does not establish compliance: model and API provider terms, embedding storage, vector database hosting, logs, backups, telemetry, SDK dependencies, support access and subprocessor data flows all require review against RGPD processing scope. Spanish hosting available where required. Cross-border transfer provisions with actual contract controls.
Pharma document security. Multi-tenant RAG enforces access controls at ingestion and retrieval with per-document ACLs. CTD submission access restricted by product team and regulatory status. Pre-approval submission data with strict access boundaries.
Prompt injection defence. Retrieved documents can contain adversarial content. Trilingual text injection may exploit language boundary handling. Retrieved text is evidence for the generation step, not permission or instructions granting tool authority.
Evaluation and quality
Held-out real task evaluation. Quality measured on actual user tasks with held-out evaluation datasets. Pharma evaluation includes CTD regulatory queries. Banking evaluation includes compliance queries. Trilingual evaluation includes cross-lingual retrieval with agreed languages. No invented benchmark accuracy percentages.
Citation fidelity. Citation presence and retrieval score are not proof of truth, completeness or calibrated certainty. Pharma regulatory citation accuracy includes CTD module, section and document version.
Read-only retrieval versus action tools
Pharma and banking RAG primarily provides read-only retrieval. If RAG extends to action tools such as regulatory filing preparation, compliance alert dispatch or submission tracking updates, each action requires actual approved tool, tenant and object rights with revocation capability and receiving-system idempotency support where available. After unknown outcome, reconciliation BEFORE retry reduces duplicate and replay risk; deduplication is not exactly-once business effects. Bounded retries, timeouts, rate limits, budgets and concurrency caps apply. Human approval for consequential actions. Untrusted retrieved content does not grant tool authority; permission checks apply before retrieval and before action, including revoked rights and async or cached paths.
Not every question needs vector search
Simple CTD section references, exact regulation number lookups and straightforward product code queries perform well with keyword search. Vector semantic search adds value for conceptual regulatory queries, cross-module CTD analysis and trilingual Barcelona retrieval. Architecture routes queries appropriately.
Illustrative Example
Hypothetical: Barcelona pharma company building regulatory knowledge RAG
A Barcelona-headquartered pharmaceutical company with 12 marketed products and 6 pipeline compounds has accumulated 180,000 regulatory documents including CTD submissions, AEMPS correspondence, clinical study reports, post-marketing safety reports and internal quality documentation in Spanish, Catalan and English.
RAG development would implement CTD module-aware retrieval with section-level granularity. Cross-module synthesis enables safety queries spanning nonclinical and clinical data. Submission variant tracking across product lifecycle. AEMPS and EMA regulatory cross-reference resolution. Trilingual retrieval for regulatory affairs teams working across languages.
Assumptions: regulatory DMS accessible through APIs, CTD documents in structured electronic format, regulatory affairs staff available for evaluation dataset creation (350 to 500 pharma regulatory queries with expected results) and RGPD compliance framework in place. Residual risks include CTD format variations across submission years, clinical study report complexity requiring medical judgment for interpretation, APDCAT versus AEPD supervisory authority determination depending on entity and activity and trilingual retrieval quality for technical pharma terminology. No guarantee of specific retrieval accuracy, regulatory response time reduction or submission quality improvement.
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.
Cost and timeline
RAG system development follows the published cost guide.
| Tier | Range | Timeline | Example |
|---|
| Basic / MVP | $15K to $40K | 4 to 8 weeks | Simple document Q&A |
| Mid-Range | $40K to $100K | 8 to 18 weeks | Trilingual hybrid search |
| Advanced | $100K to $150K | 18 to 28 weeks | Multi-corpus with evaluation |
| Enterprise | $150K to $200K+ | 5 to 8 months | Multi-tenant RGPD-compliant |
2026 US-buyer benchmark
Planning illustration from the published cost guide for a production RAG system scoped to an approximately 10,000-document corpus with multi-format ingestion, hybrid search, re-ranking, source citations, authentication, admin panel and evaluation pipeline. Figures are planning illustrations subject to actual corpus size, trilingual complexity, pharma CTD scope, evaluation dataset and hosting requirements. Cloud, model inference, vector database and evaluation operation costs scale with actual workload and are separate. Vector database hosting ($25 to $1K per month), embedding costs and LLM generation ($200 to $5K per month) run separately. Self-hosted embedding models or LLMs for data-residency or compliance requirements add $500 to $3K per month GPU infrastructure regardless of vendor.
| Vendor type | Typical range | Timeline |
|---|
| Freelancer or AI generalist | $8K to $30K | 4 to 10 weeks |
| Offshore AI agency | $18K to $55K | 8 to 16 weeks |
| Nearshore agency | $30K to $80K | 6 to 14 weeks |
| ZTABS | $45K to $130K | 6 to 14 weeks |
| Off-the-shelf platform | $10K to $50K setup | 2 to 6 weeks |
Need help estimating your Barcelona RAG budget?
Share your trilingual document complexity, pharma regulatory scope and RGPD compliance requirements. We provide a scoped estimate based on actual document volume and Barcelona's regulatory landscape.
Proposal evaluation criteria
When evaluating RAG development proposals for this engagement, verify these six criteria.
| Criterion | What to verify | Risk if skipped |
|---|
| Scope, acceptance and exit | Fixed deliverables with acceptance tests, change-order process, IP assignment on payment, data export format and transition provisions | Scope creep, disputed deliverables, no exit path |
| Integration and data-flow control | Who holds API keys, embedding provider accounts, vector database credentials and model contracts; data portability and migration support | Vendor-locked accounts, no data migration, unclear processing authority |
| Security, isolation and retention | Tenant or user isolation tested at database, cache, queue and model levels; retention and deletion policy with evidence; subprocessor list; cross-border transfer contract controls | Data leakage, undisclosed subprocessors, no deletion proof |
| Evaluation and failure handling | Held-out evaluation on actual trilingual pharma and domain tasks; failure mode documentation; regression detection; rollback capability; escalation to qualified human review | No quality baseline, silent degradation, no recovery path |
| Operations, cutover and support | Monitoring handover, runbook documentation, incident response SLA, support hours and channels, ingestion pipeline operational responsibility after launch | Operational dependency, no knowledge transfer |
| Staffing, languages and responsibility | Named trainer, validator, reviewer and support roles; staff working languages agreed separately from product UI and corpus language support; documentation and translation ownership; onsite responsibility only if separately agreed | Unclear accountability, assumed trilingual fluency, undelivered validation |
How delivery works
ZTABS is remote-first by design from our Houston, Texas office.
Architecture. Data audit covering document formats, trilingual complexity, CTD structure scope and access patterns. Architecture decisions on multilingual embedding model, vector database and EU-hosted deployment.
Data pipeline. Multi-format ingestion with trilingual parsers for pharma, regulatory and legal documents. CTD section-level chunking preserving module hierarchy. Metadata enrichment with module, language, product and document date.
Deployment. EU cloud regions for RGPD compliance. Spanish hosting where required. Containerised deployment with CI/CD pipeline.
Monitoring. Query logging with trilingual retrieval quality tracking. Pharma CTD retrieval accuracy metrics. Cross-lingual retrieval performance. Ingestion pipeline health monitoring.
Full stack considerations
Model provider training and retention terms, embedding provider data processing, vector database hosting, log aggregation, backup storage, telemetry, SDK dependencies, support access and subprocessor chains all form part of the RGPD processing scope and require review beyond EU hosting alone. Trilingual embedding model selection critical for Catalan language quality. Vector database hosting costs scale with document count and query volume. Cross-border transfer provisions require appropriate contract mechanisms for each data flow.
Legal research and Catalan law
Barcelona law firms need RAG for Spanish and Catalan legal frameworks.
Spanish statutory and case law. Codigo Civil, Codigo de Comercio, Ley de Enjuiciamiento Civil and sector-specific legislation indexed. Tribunal Supremo and Audiencia Provincial decisions searchable by legal question and jurisdiction. Catalan civil law (Codi Civil de Catalunya) provisions distinct from Spanish common civil law.
Catalan regulatory. Generalitat de Catalunya regulations, DOGC publications and Catalan administrative law searchable. APDCAT decisions and guidance for data protection. Catalan consumer protection provisions alongside Spanish national framework.
Internal firm knowledge. Previous legal opinions, contracts and transaction documentation with matter-level access controls. Trilingual institutional knowledge preservation. Cross-practice search across corporate, tax, litigation and regulatory practice areas.
Barcelona technology and startup ecosystem
Barcelona's technology ecosystem generates extensive documentation for knowledge management. Mobile World Congress legacy drives telecommunications and mobile technology documentation. Startup ecosystem documentation including investor relations, product development and regulatory filings. University research output from UPC, UB and UAB. Technology park documentation from 22@ district companies.
Tourism and hospitality knowledge
Barcelona's tourism sector generates documentation for visitor services, cultural heritage and event management. Hotel operations documentation, restaurant service knowledge and cultural venue information in multiple languages. Airport operations documentation. Event management and venue knowledge.
Construction and urban planning
Barcelona's distinctive architectural heritage and ongoing urban development create documentation needs. Building codes, urban planning regulations and construction permit documentation. Smart city initiative documentation from Barcelona City Council. Sustainable construction and energy efficiency documentation.
Scoped engagement limitations
This engagement builds a retrieval system scoped to the agreed deliverables. The following require separately engaged qualified professionals, approved operational authority or authorised organisations:
- Corpus under 50 documents. Standard search or long-context models may be more cost-effective.
- Off-the-shelf platform covers the need. Evaluate existing tools first.
- Onsite embedded staff. ZTABS is remote-first by design. Onsite presence requires separate agreement.
- Pharma regulatory advisory. Regulatory interpretation and submission strategy are supplied by qualified regulatory affairs professionals engaged by the client. RAG retrieval output requires regulatory review.
- Spanish legal advisory. Legal research output requires lawyer review. Legal advisory is supplied by qualified lawyers engaged by the client.
Risks and mitigations
Hallucination. RAG reduces but does not eliminate hallucination. Pharma hallucination can cite nonexistent CTD sections or fabricate clinical data. Citation verification and evaluation pipelines measure quality. Regulatory affairs review essential.
Trilingual quality. Catalan retrieval quality may differ from Spanish or English depending on corpus and embedding model. Evaluation on actual trilingual queries with agreed languages critical.
APDCAT versus AEPD. Supervisory authority determination depends on processing activity, entity type and public-service nexus. Early assessment of applicable authority based on actual processing activities recommended.
CTD format evolution. CTD format and structure evolve across regulatory guideline updates. Ingestion pipeline accommodates format changes. Version tracking essential. Historical format conversion enables retrieval across submission generations.
Ready to build your Barcelona RAG system?
Share your document types, trilingual needs and RGPD compliance requirements. We scope the architecture and identify the highest-value corpus to pilot.