schema.hx 1.4 KB

1234567891011121314151617181920212223242526272829
  1. // ─── Node types ──────────────────────────────────────────────
  2. N::Company {
  3. INDEX company_number: String,
  4. number_of_filings: I32,
  5. }
  6. // ─── Vector types ──────────────────────────────────────────────
  7. V::DocumentEmbedding {
  8. text: String, // The actual content
  9. chunk_id: String, // Unique chunk identifier
  10. page_number: U16, // Which page this chunk came from
  11. reference: String, // Formatted reference for citations
  12. source_link: String, // Original URL/link
  13. source_date: String, // Date of the filing
  14. }
  15. // ─── Edge types ──────────────────────────────────────────────
  16. E::DocumentEdge {
  17. From: Company,
  18. To: DocumentEmbedding,
  19. Properties: {
  20. filing_id: String, // Filter by specific document
  21. category: String, // Filter by filing type (e.g., "accounts", "confirmation-statement")
  22. subcategory: String, // Filter by filing subtype
  23. date: String, // Filter by date range (recent filings)
  24. description: String, // Human readable filing description
  25. }
  26. }