Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
322 commits
Select commit Hold shift + click to select a range
ab3c6b6
remove options from migrations files
perfectra1n Mar 16, 2025
cc85b9a
fix autoupdate name inconsistency
perfectra1n Mar 16, 2025
7b643a7
fix(llm): duplicate launch bar config
eliandoran Mar 16, 2025
d716713
refactor(llm): use dedicated widget for llm chat button
eliandoran Mar 16, 2025
5d0be30
feat(llm): show/hide LLM button based on setting
eliandoran Mar 16, 2025
1dafa65
fix(settings/llm): extra separators
eliandoran Mar 16, 2025
2853b8e
feat(options/llm): use tabs for provider configuration
eliandoran Mar 17, 2025
36a6d75
feat(options/llm): group into sections
eliandoran Mar 17, 2025
5a6d271
feat(options/llm): improve checkboxes
eliandoran Mar 17, 2025
e6cb06b
feat(options/llm): use form text style
eliandoran Mar 17, 2025
1efc923
feat(options/llm): use columns and separators
eliandoran Mar 17, 2025
fa99624
feat(options/llm): move stats at the top
eliandoran Mar 17, 2025
0ea7e10
feat(options/llm): improve style of tabs
eliandoran Mar 17, 2025
1844ad7
fix the isEnabled function
perfectra1n Mar 17, 2025
fe1faf7
show user at the top of settings if there are issues
perfectra1n Mar 17, 2025
79514b8
also add the errors to the top of the chat window
perfectra1n Mar 17, 2025
8d8c34c
fancier LLM/AI chat errors
perfectra1n Mar 17, 2025
5aef80f
fix openai endpoints
perfectra1n Mar 17, 2025
6d146c2
try ollama first, always
perfectra1n Mar 17, 2025
d95fd0b
allow specifying openai embedding models too
perfectra1n Mar 17, 2025
4a4eac6
Allow users to specify OpenAI embedding and chat models
perfectra1n Mar 17, 2025
c40c702
add anthropic options as well
perfectra1n Mar 17, 2025
14acd1c
improve LLM response parsing
perfectra1n Mar 17, 2025
7ee6cf6
add additional options and provider sorting
perfectra1n Mar 17, 2025
37f1dcd
add ability to fetch available models from openai
perfectra1n Mar 17, 2025
3268c43
improve embedding precedence
perfectra1n Mar 17, 2025
ebc5107
add missing options
perfectra1n Mar 17, 2025
43cf33c
make the AI settings even fancier to setting precedence
perfectra1n Mar 17, 2025
ac40fff
draggable options for LLM provider too
perfectra1n Mar 17, 2025
5ad730c
openai finally works, respect embedding precedence
perfectra1n Mar 17, 2025
84a8473
adapt or regenerate embeddings - allows users to decide
perfectra1n Mar 17, 2025
558f6a9
add translations
perfectra1n Mar 17, 2025
c372011
add Voyage AI as Embedding provider
perfectra1n Mar 17, 2025
08f7f19
do a better job with similarity searches
perfectra1n Mar 18, 2025
f05fe3f
set up embedding normalization
perfectra1n Mar 18, 2025
8129f8f
oh my goodness, saving these settings finally works
perfectra1n Mar 18, 2025
1a8ce96
stop the log spam
perfectra1n Mar 18, 2025
f6afb1d
set up agentic thinking
perfectra1n Mar 19, 2025
492c05b
clean up silly chat_widget that was in the wrong place
perfectra1n Mar 19, 2025
352204b
add agentic thinking to chat
perfectra1n Mar 19, 2025
db4dd6d
refactor "context" services
perfectra1n Mar 19, 2025
466b749
yeet deprecated function
perfectra1n Mar 19, 2025
d5efcfe
fix chat_service imports
perfectra1n Mar 19, 2025
2348096
get rid of this unused file too
perfectra1n Mar 19, 2025
024b063
Merge branch 'develop' into ai-llm-integration
perfectra1n Mar 19, 2025
5b81252
fix translation
perfectra1n Mar 19, 2025
0d4b6a7
update agent tools
perfectra1n Mar 19, 2025
90db570
agent tools do something now
perfectra1n Mar 19, 2025
4ff3c5a
agentic thinking really works now 🗿
perfectra1n Mar 19, 2025
e566692
centralize all prompts
perfectra1n Mar 20, 2025
eb1ef36
move the llm_prompt_constants to its own folder
perfectra1n Mar 20, 2025
273dff2
create a better base system prompt
perfectra1n Mar 20, 2025
9c1ab4f
add to base prompt
perfectra1n Mar 20, 2025
1be70f1
do a better job of building the context
perfectra1n Mar 20, 2025
915c95f
more aggressively filter notes out that don't work for us
perfectra1n Mar 20, 2025
c9728e7
also extract Note relationships and send as context
perfectra1n Mar 20, 2025
34940b5
Merge branch 'develop' into ai-llm-integration
perfectra1n Mar 20, 2025
3d70a6c
appropriately show if there are any notes still in the queue
perfectra1n Mar 20, 2025
0707266
reset embedding_queue where objects are "isprocessing"
perfectra1n Mar 20, 2025
150b0f0
remove isEnabled from embedding providers
perfectra1n Mar 24, 2025
567e9e8
Remove the drag-and-drop for settings, kept breaking
perfectra1n Mar 24, 2025
9d29ff4
don't spam the logs if a provider isn't enabled
perfectra1n Mar 24, 2025
b00c20c
Merge branch 'develop' into ai-llm-integration
perfectra1n Mar 24, 2025
f1ecc15
might have to delete this later, fixing the right-pane-container
perfectra1n Mar 24, 2025
3534399
yerp that was it
perfectra1n Mar 24, 2025
654ed47
fix embedding provider precedence settings issue
perfectra1n Mar 24, 2025
44b6734
anthropic works
perfectra1n Mar 26, 2025
c49883f
move constants to their own files and folder
perfectra1n Mar 26, 2025
a50575c
move more prompts to the constants file
perfectra1n Mar 26, 2025
5869eaf
move more constants from files into centralized location
perfectra1n Mar 26, 2025
7138053
move providers.ts into providers folder
perfectra1n Mar 26, 2025
7c519df
fix prompt path import
perfectra1n Mar 26, 2025
15630fb
add swaggerUI docstrings for LLM/AI API routes
perfectra1n Mar 26, 2025
baef5f9
fix updateProvider parameter
perfectra1n Mar 26, 2025
35fbc73
Merge branch 'develop' into ai-llm-integration
eliandoran Mar 26, 2025
a7cafce
more heavily weigh notes with title matches when giving context to LLM
perfectra1n Mar 26, 2025
5456ac3
set up embedding similarity constants and similarity system
perfectra1n Mar 26, 2025
aaa3ee2
Well the AI chat note type "kinda" works...
perfectra1n Mar 28, 2025
a05013c
fix AiChatButton
perfectra1n Mar 28, 2025
921a243
"Chat with Notes" launcher works
perfectra1n Mar 28, 2025
d201104
Move additional chat buttons to another spot
perfectra1n Mar 28, 2025
44cd2eb
fix requeue errors
perfectra1n Mar 28, 2025
005ddc4
create more interfaces to decrease use of "any"
perfectra1n Mar 28, 2025
59e7740
get rid of timeouts that aren't needed anymore
perfectra1n Mar 28, 2025
0aa2147
yeet unused app_service.js
perfectra1n Mar 28, 2025
2f573d4
fix TPL location in llm_chat_panel.ts
perfectra1n Mar 28, 2025
d1cd0a8
fix ai_settings TPL location
perfectra1n Mar 28, 2025
2899707
Better use of interfaces, reducing useage of "any"
perfectra1n Mar 28, 2025
ea4d3ac
Do a better job with Ollama context, again
perfectra1n Mar 28, 2025
72c380b
do a wayyy better job at building the messages with context
perfectra1n Mar 28, 2025
224cb22
centralize prompts
perfectra1n Mar 28, 2025
2311c3c
centralize LLM constants more
perfectra1n Mar 28, 2025
8497e77
fix linter errors in providers
perfectra1n Mar 28, 2025
a8fc9e9
render chat output as markdown, cool
perfectra1n Mar 28, 2025
def28b1
migrate to a pipeline approach for LLM chats
perfectra1n Mar 29, 2025
5d3cfcd
properly manage "saving" LLM chats
perfectra1n Mar 29, 2025
86096ee
Properly reload the LLM chat when swapping between LLM Chat Notes
perfectra1n Mar 29, 2025
87a9059
fix Ollama models always being overwritten upon settings load
perfectra1n Mar 30, 2025
58f855a
also fix other providers to not be reset when refreshing settings?
perfectra1n Mar 30, 2025
d67e8e6
break up ai_settings.ts into multiple files
perfectra1n Mar 30, 2025
c701bc5
deduplicate event handlers in ai_settings
perfectra1n Mar 30, 2025
d8d41a1
add missing translation strings
perfectra1n Mar 30, 2025
9dd7687
add embedding recreation button back
perfectra1n Mar 30, 2025
6b86bf9
fix import paths in chunking
perfectra1n Mar 30, 2025
53c756b
fix duplicate translations
perfectra1n Mar 30, 2025
40bbdb2
fix chunking imports again
perfectra1n Mar 30, 2025
a548877
fix showing percentage of embeddings that are completed
perfectra1n Mar 30, 2025
997edd8
clean up anthropic constant locations
perfectra1n Mar 30, 2025
229a29d
create get/set for private funcs
perfectra1n Mar 30, 2025
7560181
fix LBTPL_NOTE_LAUNCHER name
perfectra1n Mar 30, 2025
dd9b37e
move query decomp strings to their own file
perfectra1n Mar 30, 2025
614d5cc
move from using axios to fetch in llm services
perfectra1n Mar 30, 2025
c046343
fix voyage.ts typescript issues
perfectra1n Mar 30, 2025
29845c3
move translation strings for AI Chat Note type
perfectra1n Mar 30, 2025
f2cb013
dynamically adjust context window sizes based on conversation context
perfectra1n Mar 30, 2025
435e7cd
Merge branch 'develop' into ai-llm-integration
perfectra1n Mar 31, 2025
4c72081
add MFA branch to ai-llm-integ
perfectra1n Mar 31, 2025
edeebc7
add missing options?
perfectra1n Mar 31, 2025
bfa4c87
add missing options
perfectra1n Mar 31, 2025
ee9c4cb
fix the model selection setting to not be overridden by loading avail…
perfectra1n Mar 31, 2025
b7f2a96
swap `route` for `apiRoute` in LLM routes
perfectra1n Apr 1, 2025
1690217
update LLM API endpoints
perfectra1n Apr 1, 2025
b13a6ec
add missing translation
perfectra1n Apr 1, 2025
7ae55de
move the embeddings api endpoint to underneath llm
perfectra1n Apr 1, 2025
afd16c2
make all hierarchy.ts strings translateable, and centralize them
perfectra1n Apr 1, 2025
2db0ff2
move prompt constants from JS to TS
perfectra1n Apr 1, 2025
154d290
actually undo translations in hierarchy.ts for now
perfectra1n Apr 1, 2025
9719859
centralize constants for message formatting
perfectra1n Apr 1, 2025
afe1de5
get rid of silly ollamaIsEnabled
perfectra1n Apr 1, 2025
49076e3
clean up unused options
perfectra1n Apr 1, 2025
5b3dca8
fix interface issues
perfectra1n Apr 1, 2025
ed52d71
do a better job at centralizing json extraction, and query "enhancer"…
perfectra1n Apr 1, 2025
c500300
this can be much faster
perfectra1n Apr 1, 2025
bdcbc25
add two missing options into the UI
perfectra1n Apr 1, 2025
fde644a
remove commented imports
perfectra1n Apr 2, 2025
b7d5d92
centralize all formatter prompt strings
perfectra1n Apr 2, 2025
6e8ab37
use highlight.js in code_handlers where possible
perfectra1n Apr 2, 2025
caada30
try using XML tags in sending to LLM, so it can more easily pick out …
perfectra1n Apr 2, 2025
14705eb
split up sendMessage into its own service
perfectra1n Apr 2, 2025
9f66a9b
add missing translations
perfectra1n Apr 5, 2025
5bcfec1
add missing translation
perfectra1n Apr 5, 2025
5daed43
Merge branch 'develop' into ai-llm-integration
eliandoran Apr 6, 2025
de83708
fix(build): totp missing options
eliandoran Apr 6, 2025
26e7476
fix(build): re-align option definitions
eliandoran Apr 6, 2025
c53a66b
maybe
perfectra1n Apr 6, 2025
34a9008
YEET
perfectra1n Apr 6, 2025
023f0b6
ELIAN HELPED ME
perfectra1n Apr 6, 2025
bbd81f6
use 16 character random string for session ID
perfectra1n Apr 6, 2025
eb353df
fix translations, again
perfectra1n Apr 6, 2025
26b1b08
tool calling is close to working
perfectra1n Apr 6, 2025
7725b92
add some more useful tools
perfectra1n Apr 7, 2025
b8a6da6
rename these "agent tools"
perfectra1n Apr 7, 2025
2d745c1
wow, this actually does something
perfectra1n Apr 7, 2025
c716481
resolve linter errors
perfectra1n Apr 7, 2025
61eaf46
definitely don't need this
perfectra1n Apr 8, 2025
cdd4529
add even more tools
perfectra1n Apr 8, 2025
683d1a5
I think we're close to getting tooling to work
perfectra1n Apr 8, 2025
7373249
well this works for tool calling the "readNote" func
perfectra1n Apr 8, 2025
e523d88
did I really need to specify the context window size in API requests …
perfectra1n Apr 8, 2025
39f979e
sheeeesh
perfectra1n Apr 9, 2025
c95b9f7
recursive thinking?
perfectra1n Apr 9, 2025
208267e
increase context window size
perfectra1n Apr 9, 2025
8ff3f4f
handle streaming responses better in Chat UI
perfectra1n Apr 9, 2025
4f812cd
require that ChatCompletionOptions be defined
perfectra1n Apr 9, 2025
1dfbabc
try using a new ProviderOptions approach
perfectra1n Apr 9, 2025
59a358a
use this new providerMetadata approach
perfectra1n Apr 9, 2025
b05b88d
yes, this finally does set streaming to true
perfectra1n Apr 9, 2025
7f92dfc
okay I can call tools?
perfectra1n Apr 9, 2025
53223b5
well, we ripped out our custom ollama implementation in favor of the SDK
perfectra1n Apr 9, 2025
f71351d
also rip out our custom anthropic implementation
perfectra1n Apr 9, 2025
6fe2b87
rip out openai custom implementation in favor of sdk
perfectra1n Apr 9, 2025
b68ff88
some more docstrings
perfectra1n Apr 9, 2025
451e5ea
getting closer to streaming?
perfectra1n Apr 10, 2025
681e8bb
streaming works for ollama :)
perfectra1n Apr 11, 2025
8727ff9
Merge branch 'develop' into ai-llm-integration
perfectra1n Apr 11, 2025
3cda253
Potential fix for code scanning alert no. 61: Double escaping or unes…
perfectra1n Apr 11, 2025
50f4f82
Potential fix for code scanning alert no. 60: Double escaping or unes…
perfectra1n Apr 11, 2025
8b21763
Potential fix for code scanning alert no. 62: Double escaping or unes…
perfectra1n Apr 11, 2025
6cc4b7e
Potential fix for code scanning alert no. 55: Useless regular-express…
perfectra1n Apr 11, 2025
91c31d2
Potential fix for code scanning alert no. 64: Double escaping or unes…
perfectra1n Apr 11, 2025
16604c8
I think this is close
perfectra1n Apr 11, 2025
def70af
break up the chat_panel into smaller files
perfectra1n Apr 11, 2025
80c29e2
Do a better job of handling tools
perfectra1n Apr 11, 2025
253dbf9
this at least works to send responses when there's no tool calls
perfectra1n Apr 12, 2025
5190761
do a better job of implementing a stream_handler
perfectra1n Apr 12, 2025
6bba1be
Structure tool response
perfectra1n Apr 12, 2025
263c869
hmm
perfectra1n Apr 12, 2025
d1edf59
well this at least allows for streaming responses when no tool calls …
perfectra1n Apr 13, 2025
c9bb0fb
put more websocket logic into the stream handler
perfectra1n Apr 13, 2025
f252f53
Yeah, this kinda looks okay for tool execution
perfectra1n Apr 13, 2025
9a68155
saving chats finally works again, even if the UI is kinda...broken
perfectra1n Apr 13, 2025
e65c5dd
Do a better job of not having the frontend lockup if the session does…
perfectra1n Apr 13, 2025
6f98e72
see if this doesn't upset the machine?
perfectra1n Apr 14, 2025
7c97493
fix the note_creation tool
perfectra1n Apr 14, 2025
6750467
Merge branch 'develop' into ai-llm-integration
perfectra1n Apr 14, 2025
c04e3b2
okay openai tool calling response is close to working
perfectra1n Apr 14, 2025
2bc2aa8
wooo, tool execution container shows for openai
perfectra1n Apr 14, 2025
3bddb60
get anthropic sdk to send tools
perfectra1n Apr 14, 2025
aadb8cc
fix the duplicated...messages through the websocket?
perfectra1n Apr 15, 2025
8591705
yeet hardcoded values
perfectra1n Apr 15, 2025
0d7cfe8
fix hardcoded values part 2
perfectra1n Apr 15, 2025
284ba09
fix hardcoded values part 3
perfectra1n Apr 15, 2025
67a4533
clean up hardcoded values part 4
perfectra1n Apr 15, 2025
374975e
fix hardcoded values part 5
perfectra1n Apr 15, 2025
6df87fc
closer to anthropic tool calling...
perfectra1n Apr 15, 2025
edd075c
tool calling works, but still no response yet
perfectra1n Apr 15, 2025
76d13f6
this works, mostly
perfectra1n Apr 15, 2025
38e7d10
well, this is close enough for now and Anthropic
perfectra1n Apr 15, 2025
e5aab5b
Fix Anthropic responses when tools are called
perfectra1n Apr 15, 2025
0bca44f
fix the table reference
perfectra1n Apr 15, 2025
193c577
wow, this fixed openai too
perfectra1n Apr 15, 2025
2acc30f
Merge branch 'develop' into ai-llm-integration
perfectra1n Apr 16, 2025
3fec871
add missing translation
perfectra1n Apr 16, 2025
bbb382e
add ai docs
perfectra1n Apr 16, 2025
64f2a93
reduce the use of any, part 1
perfectra1n Apr 16, 2025
4601e3b
reduce the use of any, part 2
perfectra1n Apr 16, 2025
80ea2c3
reduce the use of any, part 3
perfectra1n Apr 16, 2025
07db19a
reduce the use of any, part 4
perfectra1n Apr 16, 2025
77e6373
have the Chat Note be the single source of truth, part 1
perfectra1n Apr 16, 2025
534396b
break up the rest_chat_service
perfectra1n Apr 16, 2025
d149e21
rename files with underscore
perfectra1n Apr 16, 2025
21b07ff
this one too
perfectra1n Apr 16, 2025
3da3398
move some more logic into the "container widget" for llm_chat
perfectra1n Apr 16, 2025
8f1723c
get rid of unused functions
perfectra1n Apr 16, 2025
ec6214b
well, at least resolve these issues?
perfectra1n Apr 16, 2025
daccadd
why does it work now
perfectra1n Apr 16, 2025
1968a5f
create `restoreSessionFromChatNote` function
perfectra1n Apr 16, 2025
06924aa
move these to the interfaces folder
perfectra1n Apr 16, 2025
cdc84f1
decouple sessions even further
perfectra1n Apr 16, 2025
2b14f73
update frontend
perfectra1n Apr 16, 2025
5e1fc56
closer to decoupling sessions...
perfectra1n Apr 16, 2025
c1ea9e3
I think sessions are finally decoupled
perfectra1n Apr 16, 2025
e968e00
try to fix tools again...
perfectra1n Apr 17, 2025
9eec418
fix the double saving of responses in the chat note
perfectra1n Apr 17, 2025
6f3d2b6
dropdown for tool execution box
perfectra1n Apr 17, 2025
9b51672
add more logs around tool calling and recursion
perfectra1n Apr 17, 2025
0f23be9
clarify that the note title is not the ID
perfectra1n Apr 17, 2025
d1295ed
fix formatting in vector_search_tool
perfectra1n Apr 17, 2025
5e50a29
I don't think this can hurt to prioritize summaries of content
perfectra1n Apr 17, 2025
7062e51
well at least query decomposition is working..for now
perfectra1n Apr 17, 2025
19c36b1
query decomp is closer to working
perfectra1n Apr 17, 2025
d83cce8
format decomp files
perfectra1n Apr 17, 2025
daa56b1
maybe
perfectra1n Apr 17, 2025
a0dda48
this is absolutely cursed, but query decomp works now
perfectra1n Apr 17, 2025
eb5b853
format document
perfectra1n Apr 17, 2025
3958d1d
well the search_notes tool does something more useful now
perfectra1n Apr 17, 2025
0133e83
Merge remote-tracking branch 'origin/develop' into ai-llm-integration
eliandoran Apr 17, 2025
ee0a1e5
chore(docs): sync LLM documentation with develop
eliandoran Apr 17, 2025
041c228
fix(client): root CSS import breaking some tests
eliandoran Apr 17, 2025
6c0a43f
chore(docs): sync again
eliandoran Apr 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions db/migrations/0230__vector_embeddings.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
-- Add tables for vector embeddings storage and management
-- This migration adds embedding support to the main document.db database

-- Store embeddings for notes
CREATE TABLE IF NOT EXISTS "note_embeddings" (
"embedId" TEXT NOT NULL PRIMARY KEY,
"noteId" TEXT NOT NULL,
"providerId" TEXT NOT NULL,
"modelId" TEXT NOT NULL,
"dimension" INTEGER NOT NULL,
"embedding" BLOB NOT NULL,
"version" INTEGER NOT NULL DEFAULT 1,
"dateCreated" TEXT NOT NULL,
"utcDateCreated" TEXT NOT NULL,
"dateModified" TEXT NOT NULL,
"utcDateModified" TEXT NOT NULL
);

CREATE INDEX "IDX_note_embeddings_noteId" ON "note_embeddings" ("noteId");
CREATE INDEX "IDX_note_embeddings_providerId_modelId" ON "note_embeddings" ("providerId", "modelId");

-- Table to track which notes need embedding updates
CREATE TABLE IF NOT EXISTS "embedding_queue" (
"noteId" TEXT NOT NULL PRIMARY KEY,
"operation" TEXT NOT NULL, -- CREATE, UPDATE, DELETE
"dateQueued" TEXT NOT NULL,
"utcDateQueued" TEXT NOT NULL,
"priority" INTEGER NOT NULL DEFAULT 0,
"attempts" INTEGER NOT NULL DEFAULT 0,
"lastAttempt" TEXT NULL,
"error" TEXT NULL,
"failed" INTEGER NOT NULL DEFAULT 0,
"isProcessing" INTEGER NOT NULL DEFAULT 0
);

-- Table to store embedding provider configurations
CREATE TABLE IF NOT EXISTS "embedding_providers" (
"providerId" TEXT NOT NULL PRIMARY KEY,
"name" TEXT NOT NULL,
"priority" INTEGER NOT NULL DEFAULT 0,
"config" TEXT NOT NULL, -- JSON config object
"dateCreated" TEXT NOT NULL,
"utcDateCreated" TEXT NOT NULL,
"dateModified" TEXT NOT NULL,
"utcDateModified" TEXT NOT NULL
);
42 changes: 42 additions & 0 deletions db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,45 @@ CREATE INDEX IDX_attachments_ownerId_role
CREATE INDEX IDX_notes_blobId on notes (blobId);
CREATE INDEX IDX_revisions_blobId on revisions (blobId);
CREATE INDEX IDX_attachments_blobId on attachments (blobId);

CREATE TABLE IF NOT EXISTS "note_embeddings" (
"embedId" TEXT NOT NULL PRIMARY KEY,
"noteId" TEXT NOT NULL,
"providerId" TEXT NOT NULL,
"modelId" TEXT NOT NULL,
"dimension" INTEGER NOT NULL,
"embedding" BLOB NOT NULL,
"version" INTEGER NOT NULL DEFAULT 1,
"dateCreated" TEXT NOT NULL,
"utcDateCreated" TEXT NOT NULL,
"dateModified" TEXT NOT NULL,
"utcDateModified" TEXT NOT NULL
);

CREATE INDEX "IDX_note_embeddings_noteId" ON "note_embeddings" ("noteId");
CREATE INDEX "IDX_note_embeddings_providerId_modelId" ON "note_embeddings" ("providerId", "modelId");

CREATE TABLE IF NOT EXISTS "embedding_queue" (
"noteId" TEXT NOT NULL PRIMARY KEY,
"operation" TEXT NOT NULL,
"dateQueued" TEXT NOT NULL,
"utcDateQueued" TEXT NOT NULL,
"priority" INTEGER NOT NULL DEFAULT 0,
"attempts" INTEGER NOT NULL DEFAULT 0,
"lastAttempt" TEXT NULL,
"error" TEXT NULL,
"failed" INTEGER NOT NULL DEFAULT 0,
"isProcessing" INTEGER NOT NULL DEFAULT 0
);

CREATE TABLE IF NOT EXISTS "embedding_providers" (
"providerId" TEXT NOT NULL PRIMARY KEY,
"name" TEXT NOT NULL,
"isEnabled" INTEGER NOT NULL DEFAULT 0,
"priority" INTEGER NOT NULL DEFAULT 0,
"config" TEXT NOT NULL,
"dateCreated" TEXT NOT NULL,
"utcDateCreated" TEXT NOT NULL,
"dateModified" TEXT NOT NULL,
"utcDateModified" TEXT NOT NULL
);
2 changes: 1 addition & 1 deletion docs/Developer Guide/!!!meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"formatVersion": 2,
"appVersion": "0.92.7",
"appVersion": "0.93.0",
"files": [
{
"isClone": false,
Expand Down
2 changes: 1 addition & 1 deletion docs/Release Notes/!!!meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"formatVersion": 2,
"appVersion": "0.92.7",
"appVersion": "0.93.0",
"files": [
{
"isClone": false,
Expand Down
1 change: 0 additions & 1 deletion docs/Release Notes/Release Notes/v0.93.0.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# v0.93.0

## 🐞 Bugfixes

* Calendar does not hide when clicking on a note by @JYC333
Expand Down
Loading
Loading