This commit is contained in:
Marco Realacci 2024-11-02 16:28:37 +01:00
parent be7844b4f3
commit eea09ec9b8
15 changed files with 35749 additions and 63 deletions

View file

@ -5,5 +5,6 @@
"mathlive-in-editor-mode",
"smart-second-brain",
"local-gpt",
"obsidian-latex-suite"
"obsidian-latex-suite",
"companion"
]

19
.obsidian/plugins/companion/data.json vendored Normal file
View file

@ -0,0 +1,19 @@
{
"provider": "ollama",
"model": "qwen2.5:14b",
"enable_by_default": false,
"keybind": "Tab",
"delay_ms": 2000,
"stream": true,
"accept": {
"splitter_regex": " ",
"display_splitter_regex": "[.?!:;]",
"completion_completeness_regex": ".*(?!p{L})[^d]$",
"min_accept_length": 4,
"min_display_length": 50,
"retrigger_threshold": 48
},
"provider_settings": {},
"presets": [],
"fallback": null
}

35514
.obsidian/plugins/companion/main.js vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,11 @@
{
"id": "companion",
"name": "Companion",
"version": "1.8.0",
"minAppVersion": "1.1.16",
"description": "Autocomplete with AI, including ChatGPT and ollama, through a copilot-like interface.",
"author": "rizerphe",
"authorUrl": "https://github.com/rizerphe",
"fundingUrl": "https://www.buymeacoffee.com/rizerphe",
"isDesktopOnly": false
}

25
.obsidian/plugins/companion/styles.css vendored Normal file
View file

@ -0,0 +1,25 @@
/* src/styles.sass */
.ai-complete-advanced-settings {
padding-left: 1rem;
}
.ai-complete-chatgpt-full-width {
width: 100%;
min-height: 120px;
resize: none;
}
.ai-complete-jurassic-expandable {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.5rem;
}
.ai-complete-ollama-full-width {
width: 100%;
min-height: 120px;
resize: none;
}
.ai-complete-groq-full-width {
width: 100%;
min-height: 120px;
resize: none;
}

View file

@ -2,7 +2,7 @@
"providers": {
"ollama": {
"ollamaUrl": "http://localhost:11434",
"defaultModel": "llama3.1:8b-instruct-q8_0",
"defaultModel": "qwen2.5:14b",
"embeddingModel": "nomic-embed-text",
"type": "ollama"
},
@ -28,7 +28,7 @@
"defaults": {
"provider": "ollama",
"fallbackProvider": "",
"creativity": "low"
"creativity": ""
},
"actions": [
{

View file

@ -5,10 +5,10 @@
"initialAssistantMessageContent": "Hello, I am your assistant. How can I help you?",
"isIncognitoMode": true,
"ollamaGenModel": {
"model": "llama3.1:8b-instruct-q8_0",
"model": "qwen2.5:14b",
"baseUrl": "http://localhost:11434",
"temperature": 0.5,
"contextWindow": 1948,
"contextWindow": 2048,
"lcModel": {
"lc": 1,
"type": "constructor",
@ -22,14 +22,126 @@
"model": "llama3.1:8b-instruct-q8_0",
"base_url": "http://localhost:11434",
"temperature": 0.5,
"context_window": 1948
"context_window": 1248,
"lc_model": {
"lc": 1,
"type": "constructor",
"id": [
"langchain",
"chat_models",
"ollama",
"ChatOllama"
],
"kwargs": {
"model": "llama3.1:8b-instruct-q8_0",
"base_url": "http://localhost:11434",
"temperature": 0.5,
"context_window": 1348,
"lc_model": {
"lc": 1,
"type": "constructor",
"id": [
"langchain",
"chat_models",
"ollama",
"ChatOllama"
],
"kwargs": {
"model": "llama3.1:8b-instruct-q8_0",
"base_url": "http://localhost:11434",
"temperature": 1,
"context_window": 1448,
"lc_model": {
"lc": 1,
"type": "constructor",
"id": [
"langchain",
"chat_models",
"ollama",
"ChatOllama"
],
"kwargs": {
"model": "llama3.1:8b-instruct-q8_0",
"base_url": "http://localhost:11434",
"temperature": 0,
"context_window": 1548,
"lc_model": {
"lc": 1,
"type": "constructor",
"id": [
"langchain",
"chat_models",
"ollama",
"ChatOllama"
],
"kwargs": {
"model": "llama3.1:8b-instruct-q8_0",
"base_url": "http://localhost:11434",
"temperature": 0,
"context_window": 1648,
"lc_model": {
"lc": 1,
"type": "constructor",
"id": [
"langchain",
"chat_models",
"ollama",
"ChatOllama"
],
"kwargs": {
"model": "llama3.1:8b-instruct-q8_0",
"base_url": "http://localhost:11434",
"temperature": 0.5,
"context_window": 1748,
"lc_model": {
"lc": 1,
"type": "constructor",
"id": [
"langchain",
"chat_models",
"ollama",
"ChatOllama"
],
"kwargs": {
"model": "llama3.1:8b-instruct-q8_0",
"base_url": "http://localhost:11434",
"temperature": 0.5,
"context_window": 1848,
"lc_model": {
"lc": 1,
"type": "constructor",
"id": [
"langchain",
"chat_models",
"ollama",
"ChatOllama"
],
"kwargs": {
"model": "llama3.1:8b-instruct-q8_0",
"base_url": "http://localhost:11434",
"temperature": 0.5,
"context_window": 1948
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
},
"ollamaEmbedModel": {
"model": "nomic-embed-text",
"baseUrl": "http://localhost:11434",
"similarityThreshold": 0.75,
"similarityThreshold": 0.5,
"k": 100
},
"openAIGenModel": {
@ -49,7 +161,7 @@
"Chats",
"*.excalidraw.md"
],
"isQuickSettingsOpen": true,
"isQuickSettingsOpen": false,
"isVerbose": false,
"isOnboarded": true,
"hideIncognitoWarning": false,

View file

@ -4,21 +4,21 @@
"type": "split",
"children": [
{
"id": "5db0591e19cf632e",
"id": "d43d10180ff70873",
"type": "tabs",
"children": [
{
"id": "5af0211cef5316b5",
"id": "86cc34a714fe2576",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Autonomous Networking/notes/7 RL.md",
"file": "Autonomous Networking/notes/9 Markov processes.md",
"mode": "source",
"source": false
},
"icon": "lucide-file",
"title": "7 RL"
"title": "9 Markov processes"
}
}
]
@ -168,11 +168,12 @@
}
}
],
"currentTab": 4
"currentTab": 5
}
],
"direction": "horizontal",
"width": 604.5
"width": 604.5,
"collapsed": true
},
"left-ribbon": {
"hiddenItems": {
@ -187,11 +188,27 @@
"pdf-plus:PDF++: Toggle auto-focus": false,
"pdf-plus:PDF++: Toggle auto-paste": false,
"obsidian-git:Open Git source control": false,
"smart-second-brain:Open S2B Chat": false
"smart-second-brain:Open S2B Chat": false,
"companion:Toggle completion": false
}
},
"active": "0d5325c0f9289cea",
"active": "86cc34a714fe2576",
"lastOpenFiles": [
"Autonomous Networking/slides/6 IoT.pdf",
"Autonomous Networking/slides/9markovprocess.pdf",
"Autonomous Networking/slides/AutonomousNet-Class13-2122-Optimal_policy_and_Qlearning.pdf",
"Autonomous Networking/slides/AutonomousNet-Class11-2122-Performance_of_action_selection_methods_UCB.pdf",
"Autonomous Networking/notes/9 Markov processes.md",
"Autonomous Networking/slides/7 RL1.pdf",
"Autonomous Networking/notes/7.2 10 arm testbed - optimism in face of uncertainty.md",
"Autonomous Networking/notes/7.1 K-Armed bandit problem.md",
"Autonomous Networking/notes/2 RFID.md",
"Foundation of data science/notes/2 Logistic Regression.md",
"Foundation of data science/notes/3 Multi Class Binary Classification.md",
"Chats/New Chat.md",
"Foundation of data science/slides/Untitled.md",
"Senza nome.md",
"Autonomous Networking/images/Pasted image 20241031144640.png",
"Autonomous Networking/notes/7 RL.md",
"conflict-files-obsidian-git.md",
"Biometric Systems/slides/LEZIONE6_Face recognition2D.pdf",
@ -207,36 +224,22 @@
"Biometric Systems/images/Pasted image 20241031085606.png",
"Biometric Systems/images/Pasted image 20241031084659.png",
"Biometric Systems/images/Pasted image 20241030165705.png",
"Biometric Systems/images/Pasted image 20241030154413.png",
"Autonomous Networking/slides/AutonomousNet-Class13-2122-Optimal_policy_and_Qlearning.pdf",
"Autonomous Networking/slides/AutonomousNet-Class10-2122-Multiarmed_bandit.pdf",
"Autonomous Networking/slides/9markovprocess.pdf",
"Autonomous Networking/notes/9 Markov processes.md",
"Autonomous Networking/notes/7.2 10 arm testbed - optimism in face of uncertainty.md",
"Autonomous Networking/notes/7.1 K-Armed bandit problem.md",
"Autonomous Networking/notes/8.md",
"Autonomous Networking/notes/q&a.md",
"Autonomous Networking/notes/4 WSN Routing.md",
"Autonomous Networking/notes/5 Drones.md",
"Autonomous Networking/notes/2 RFID.md",
"Foundation of data science/notes/2 Logistic Regression.md",
"Foundation of data science/notes/3 Multi Class Binary Classification.md",
"Chats/New Chat.md",
"Foundation of data science/notes/1 CV Basics.md",
"Foundation of data science/images",
"Autonomous Networking/slides/AutonomousNet-Class11-2122-Performance_of_action_selection_methods_UCB.pdf",
"Chats",
"Autonomous Networking/slides/5 Drones.pdf",
"Autonomous Networking/slides/6 IoT.pdf",
"Autonomous Networking/notes/3 WSN MAC.md",
"Autonomous Networking/notes/6 Internet of Things.md",
"Autonomous Networking/notes/6.1 RL.md",
"Biometric Systems/notes/4. Face recognition.md",
"Foundation of data science/slides/Untitled.md",
"Biometric Systems/notes/3. Recognition Reliability.md",
"Foundation of data science/slides/notes 2.md",
"Biometric Systems/notes/2. Performance indexes.md",
"Biometric Systems/notes/1. Introduction.md",
"Senza nome.canvas"
]
}