#303 — Changes to knowledge base to better support versioning in twill-data

Repo: Twill-AI/facade State: closed | Status: done Assignee: meliascosta

Created: 2025-03-13 · Updated: 2025-03-27

Description

AC:

  • The type of id for the DBKnowledgeBaseDoc is now set to UUID v4
  • Endpoint /api/v1/master/knowledge_base/collections/{collection}/docs now allows setting the ID of each document. If a document with the same id already exists it should be updated (or replaced). If an ID for a document is not explicitly set it should be created in the DB
  • Endpoint /api/v1/master/knowledge_base/collections/{collection}/docs now checks that param upserted_at has a timezone set. It rejects any updates with timestamps that have no timezone.
  • There is a new endpoint supporting bulk deletions by a list of IDs.

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets