Skip to content

docs: add module-level documentation to embeddings.ts and timeline-db.ts#226

Open
TerminalGravity wants to merge 1 commit intomainfrom
docs/inline-comments-embeddings-timeline
Open

docs: add module-level documentation to embeddings.ts and timeline-db.ts#226
TerminalGravity wants to merge 1 commit intomainfrom
docs/inline-comments-embeddings-timeline

Conversation

@TerminalGravity
Copy link
Collaborator

Adds comprehensive inline documentation to the two core files powering semantic search:

  • embeddings.ts: module overview explaining both providers (local Xenova vs OpenAI), preprocessing pipeline, and usage example
  • timeline-db.ts: ASCII architecture diagram of ~/.preflight/ directory layout, key function JSDoc (getEventsTable, insertEvents, buildWhereFilter), connection pooling notes

No code changes — documentation only.

Added comprehensive inline documentation to the two core files powering
semantic search:

- embeddings.ts: module overview, provider descriptions, usage example
- timeline-db.ts: architecture diagram showing ~/.preflight/ layout,
  key function descriptions, connection pooling notes, JSDoc on
  getEventsTable, insertEvents, and buildWhereFilter
Copy link
Collaborator Author

@TerminalGravity TerminalGravity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good docs additions. The module-level comments in both files are accurate and will help contributors understand the architecture quickly. The getEventsTable and insertEvents JSDoc additions are useful too.

One note: the embeddings.ts header still only lists Local and OpenAI providers (lines 8-11) but doesn't mention Voyage, which was added in #222. If that merges first, this PR should be rebased to include it in the provider list.

LGTM otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant