Skip to content

Commit

Permalink
Document attachments and prompt_attachments table schemas
Browse files Browse the repository at this point in the history
Ref #615
  • Loading branch information
simonw authored Nov 6, 2024
1 parent acca5f5 commit 9d9bfa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def cleanup_sql(sql):
return first_line + '(\n ' + ',\n '.join(columns) + '\n);'
cog.out("```sql\n")
for table in ("conversations", "responses", "responses_fts"):
for table in ("conversations", "responses", "responses_fts", "attachments", "prompt_attachments"):
schema = db[table].schema
cog.out(format(cleanup_sql(schema)))
cog.out("\n")
Expand Down Expand Up @@ -168,4 +168,4 @@ CREATE VIRTUAL TABLE [responses_fts] USING FTS5 (
);
```
<!-- [[[end]]] -->
`responses_fts` configures [SQLite full-text search](https://www.sqlite.org/fts5.html) against the `prompt` and `response` columns in the `responses` table.
`responses_fts` configures [SQLite full-text search](https://www.sqlite.org/fts5.html) against the `prompt` and `response` columns in the `responses` table.

0 comments on commit 9d9bfa7

Please sign in to comment.