vault backup: 2024-10-30 01:25:03

This commit is contained in:
Marco Realacci 2024-10-30 01:25:03 +01:00
commit 3cbdd4a606
22 changed files with 47542 additions and 61 deletions

View file

@ -2,5 +2,8 @@
"obsidian-ocr",
"pdf-plus",
"obsidian-git",
"mathlive-in-editor-mode"
"mathlive-in-editor-mode",
"smart-second-brain",
"local-gpt",
"obsidian-latex-suite"
]

67
.obsidian/plugins/local-gpt/data.json vendored Normal file
View file

@ -0,0 +1,67 @@
{
"providers": {
"ollama": {
"ollamaUrl": "http://localhost:11434",
"defaultModel": "llama3.1:8b-instruct-q8_0",
"embeddingModel": "nomic-embed-text",
"type": "ollama"
},
"ollama_fallback": {
"ollamaUrl": "http://localhost:11434",
"defaultModel": "gemma2",
"embeddingModel": "",
"type": "ollama"
},
"openaiCompatible": {
"url": "http://localhost:8080",
"apiKey": "",
"embeddingModel": "",
"type": "openaiCompatible"
},
"openaiCompatible_fallback": {
"url": "http://localhost:8080",
"apiKey": "",
"embeddingModel": "",
"type": "openaiCompatible"
}
},
"defaults": {
"provider": "ollama",
"fallbackProvider": "",
"creativity": "low"
},
"actions": [
{
"name": "🪄 General help",
"prompt": "",
"system": "You are an assistant helping a user write more content in a document based on a prompt. Output in markdown format. Do not use links. Do not include literal content from the original document."
},
{
"name": "✍️ Continue writing",
"prompt": "Act as a professional editor with many years of experience as a writer. Carefully finalize the following text, add details, use facts and make sure that the meaning and original style are preserved. Purposely write in detail, with examples, so that your reader is comfortable, even if they don't understand the specifics. Don't use clericalisms, evaluations without proof with facts, passive voice. Use Markdown markup language for formatting. Answer only content and nothing else, no introductory words, only substance.",
"system": "You are an AI assistant that follows instruction extremely well. Help as much as you can."
},
{
"name": "🍭 Summarize",
"prompt": "Make a concise summary of the key points of the following text.",
"system": "You are an AI assistant that follows instruction extremely well. Help as much as you can."
},
{
"name": "📖 Fix spelling and grammar",
"prompt": "Proofread the below for spelling and grammar.",
"system": "You are an AI assistant that follows instruction extremely well. Help as much as you can.",
"replace": true
},
{
"name": "✅ Find action items",
"prompt": "Act as an assistant helping find action items inside a document. An action item is an extracted task or to-do found inside of an unstructured document. Use Markdown checkbox format: each line starts with \"- [ ] \"",
"system": "You are an AI assistant that follows instruction extremely well. Help as much as you can."
},
{
"name": "🧠 New System Prompt",
"prompt": "",
"system": "You are a highly skilled AI prompt engineer with expertise in creating tailored prompts for a wide range of professional roles. You have a deep knowledge of how to craft prompts that effectively guide the language model to produce high-quality, contextually appropriate responses.\n\nYour task is to generate a custom system prompt for different roles based on user input. This involves understanding the specific requirements of each role, the context in which the prompt will be used, and the desired output format. You are skilled in structuring prompts that ensure clarity, relevance, and utility.\n\nCreate a custom system prompt for an LLM to assist users in generating contextually appropriate and highly effective responses for various roles. The prompt should provide clear instructions to the LLM on how to handle specific scenarios related to the role, including the tone and format of the response.\n\nStart by providing a role \"You are...\" and context as a summary of the situation or background information relevant to the prompt. Define the main objective, outlining what the LLM needs to accomplish.\n\nInclude instructions on the appropriate style and tone (e.g., formal, casual, technical, empathetic) based on the role and audience. Identify the target audience to tailor the LLM's output effectively. Specify the format of the response, whether it should be a narrative, bullet points, step-by-step guide, code, or another format. Avoid using headings or examples; the prompt should read as a continuous, cohesive set of instructions.\nANSWER PROMPT AND NOTHING ELSE!"
}
],
"_version": 5
}

30665
.obsidian/plugins/local-gpt/main.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,10 @@
{
"id": "local-gpt",
"name": "Local GPT",
"version": "1.14.3",
"minAppVersion": "0.15.0",
"description": "Local GPT assistance for maximum privacy and offline access",
"author": "Pavel Frankov",
"authorUrl": "https://github.com/pfrankov",
"isDesktopOnly": false
}

123
.obsidian/plugins/local-gpt/styles.css vendored Normal file
View file

@ -0,0 +1,123 @@
.local-gpt-settings-separator {
margin: 1em 0;
height: 1em;
}
.local-gpt-content {
color: var(--text-faint);
display: block;
white-space: pre-wrap;
word-break: break-word;
}
.local-gpt-content > span:last-child {
display: inline;
background-image: linear-gradient(
to right,
var(--text-faint) 0%,
var(--interactive-accent) 100%
);
background-clip: text;
-webkit-text-fill-color: transparent;
box-decoration-break: slice;
}
.local-gpt-loading {
display: inline-block;
overflow: hidden;
height: 1.3em;
line-height: 1.5em;
vertical-align: text-bottom;
margin: -0.3em 0.3em 0;
}
.local-gpt-loading::after {
display: inline-table;
white-space: pre;
text-align: left;
}
.local-gpt-loading.local-gpt-dots::after {
content: "⠋\A⠙\A⠹\A⠸\A⠼\A⠴\A⠦\A⠧\A⠇\A⠏";
animation: spin10 1s steps(10) infinite;
}
.local-gpt-status {
position: relative;
}
.local-gpt-status::before {
content: attr(data-text);
background-image: linear-gradient(
to right,
var(--status-bar-text-color) 30%,
var(--interactive-accent-hover) 50%,
var(--status-bar-text-color) 70%
);
background-clip: text;
-webkit-text-fill-color: transparent;
box-decoration-break: slice;
display: inline-block;
overflow: hidden;
white-space: nowrap;
animation:
expandText 0.3s ease-out forwards,
gradientMove 1.7s linear infinite;
background-size: 200% 100%;
background-position: -50% 0;
}
.local-gpt-status::after {
content: attr(data-text);
position: absolute;
padding: 10px;
margin-left: -10px;
color: var(--interactive-accent-hover);
display: inline-block;
white-space: nowrap;
filter: blur(1px);
mask-image: linear-gradient(
to right,
transparent 30%,
black 50%,
transparent 70%
);
mask-size: 200% 100%;
mask-position: -50% 0;
animation: maskMove 1.7s linear infinite;
mix-blend-mode: color-dodge;
}
@keyframes spin10 {
to {
transform: translateY(-15em);
}
}
@keyframes expandText {
from {
max-width: 0;
}
to {
max-width: 100%;
}
}
@keyframes gradientMove {
0% {
background-position: -50% 0;
}
100% {
background-position: 150% 0;
}
}
@keyframes maskMove {
0% {
mask-position: -50% 0;
}
100% {
mask-position: 150% 0;
}
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
{
"id": "obsidian-latex-suite",
"name": "Latex Suite",
"version": "1.9.7",
"minAppVersion": "1.0.0",
"description": "Make typesetting LaTeX math as fast as handwriting through snippets, text expansion, and editor enhancements",
"author": "artisticat",
"authorUrl": "https://github.com/artisticat1",
"fundingUrl": "https://ko-fi.com/artisticat",
"isDesktopOnly": false
}

View file

@ -0,0 +1,235 @@
/* Settings panel */
.setting-item.hidden {
display: none;
}
.setting-item.setting-item-heading .latex-suite-settings-icon {
margin-right: var(--size-4-2);
display: inline-flex;
}
.setting-item.setting-item-heading:has(.latex-suite-settings-icon) {
border-bottom: 1px solid var(--background-modifier-border);
}
.setting-item.setting-item-heading:has(.latex-suite-settings-icon) + .setting-item {
border-top: none;
}
.setting-item.setting-item-heading:has(.latex-suite-settings-icon) ~ .setting-item:not(.setting-item-heading), .latex-suite-snippet-variables-setting + .setting-item-control {
width: calc(100% - 26px);
margin-left: 26px;
}
.latex-suite-snippet-variables-setting .setting-item-control {
height: 120px;
}
.latex-suite-snippet-variables-setting .setting-item-control textarea {
width: 100%;
height: 100%;
}
.snippets-text-area, .latex-suite-snippet-variables-setting {
display: inline-block;
}
.snippets-text-area .setting-item-info, .latex-suite-snippet-variables-setting .setting-item-info {
margin-bottom: 0.75rem;
}
.snippets-text-area .setting-item-control {
flex-direction: column;
align-items: flex-end;
}
.snippets-editor-wrapper {
width: 100%;
margin-bottom: 0.75rem;
}
.snippets-editor-wrapper .cm-editor {
border: 1px solid var(--background-modifier-border);
border-radius: 4px;
font-size: var(--font-inputs);
height: 20em;
outline: none !important;
text-align: left;
}
.snippets-editor-wrapper .cm-line, .snippets-editor-wrapper .cm-lineNumbers {
font-family: var(--font-monospace);
}
.snippets-footer {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.snippets-editor-validity {
display: flex;
align-items: center;
}
.snippets-editor-validity-indicator {
color: white;
display: inline-block;
border-radius: 1em;
margin-right: 10px;
cursor: default;
visibility: hidden;
}
.snippets-editor-validity-indicator svg {
width: 16px !important;
height: 16px !important;
}
.snippets-editor-validity-indicator:hover {
color: white;
}
.snippets-editor-validity-indicator.valid {
background-color: var(--color-green);
visibility: visible;
}
.snippets-editor-validity-indicator.invalid {
background-color: var(--color-red);
visibility: visible;
}
.snippets-editor-buttons {
display: flex;
flex-direction: row;
}
.latex-suite-confirmation-modal .setting-item {
border: none;
}
.search-input-container input.latex-suite-location-input-el {
width: initial;
}
/*
Snippet color classes.
*/
/* These extra selectors enforce their color on all children, because CodeMirror does weird nesting of spans when
nesting multiple decorations. */
.latex-suite-snippet-placeholder {
border-radius: 2px;
background-color: var(--placeholder-bg);
outline: var(--placeholder-outline) solid 1px;
}
.latex-suite-snippet-placeholder-0, span.latex-suite-snippet-placeholder-0 span {
--placeholder-bg: #87cefa2e;
--placeholder-outline: #87cefa6e;
}
.theme-dark .latex-suite-snippet-placeholder-0, span.latex-suite-snippet-placeholder-0 span {
--placeholder-outline: #87cefa43;
}
.latex-suite-snippet-placeholder-1, span.latex-suite-snippet-placeholder-1 span {
--placeholder-bg: #ffa50033;
--placeholder-outline: #ffa5006b;
}
.theme-dark .latex-suite-snippet-placeholder-1, span.latex-suite-snippet-placeholder-1 span {
--placeholder-outline: #ffa5004d;
}
.latex-suite-snippet-placeholder-2, span.latex-suite-snippet-placeholder-2 span {
--placeholder-bg: #00ff0022;
--placeholder-outline: #00ff0060;
}
.theme-dark .latex-suite-snippet-placeholder-2, span.latex-suite-snippet-placeholder-2 span {
--placeholder-outline: #00ff003d;
}
/* Conceal */
span.cm-math.cm-concealed-bold {
font-weight: bold;
}
span.cm-math.cm-concealed-underline {
text-decoration: underline;
}
span.cm-math.cm-concealed-mathrm, sub.cm-math.cm-concealed-mathrm {
font-style: normal;
}
/* Conceal superscripts without changing line height */
sup.cm-math {
line-height: 0;
}
sup.cm-math, sub.cm-math {
font-style: italic;
}
/* Inline math tooltip styling */
.theme-light .cm-tooltip.cm-tooltip-cursor {
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.028), 0px 3.4px 6.7px rgba(0, 0, 0, .042), 0px 5px 20px rgba(0, 0, 0, .07);
}
.theme-dark .cm-tooltip.cm-tooltip-cursor {
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1),
0px 3.4px 6.7px rgba(0, 0, 0, 0.15),
0px 0px 30px rgba(0, 0, 0, 0.27);
}
/* Highlight brackets */
.theme-light .latex-suite-highlighted-bracket, .theme-light .latex-suite-highlighted-bracket [class^="latex-suite-color-bracket-"] {
background-color: hsl(var(--accent-h), var(--accent-s), 40%, 0.3);
}
.theme-dark .latex-suite-highlighted-bracket, .theme-dark .latex-suite-highlighted-bracket [class^="latex-suite-color-bracket-"] {
background-color: hsl(var(--accent-h), var(--accent-s), 70%, 0.6);
}
/* Color matching brackets */
.theme-light .latex-suite-color-bracket-0, .theme-light .latex-suite-color-bracket-0 .cm-bracket {
color: #527aff;
}
.theme-dark .latex-suite-color-bracket-0, .theme-dark .latex-suite-color-bracket-0 .cm-bracket {
color: #47b8ff;
}
.theme-light .latex-suite-color-bracket-1, .theme-light .latex-suite-color-bracket-1 .cm-bracket {
color: #ff50b7;
}
.theme-dark .latex-suite-color-bracket-1, .theme-dark .latex-suite-color-bracket-1 .cm-bracket {
color: #ff55cd;
}
.theme-light .latex-suite-color-bracket-2, .theme-light .latex-suite-color-bracket-2 .cm-bracket {
color: #69ba00;
}
.theme-dark .latex-suite-color-bracket-2, .theme-dark .latex-suite-color-bracket-2 .cm-bracket {
color: #73ff63;
}
/* .latex-suite-color-bracket-3 {
color: #8de15c;
} */

View file

@ -0,0 +1,57 @@
{
"isChatComfy": true,
"isUsingRag": true,
"assistantLanguage": "en",
"initialAssistantMessageContent": "Hello, I am your assistant. How can I help you?",
"isIncognitoMode": true,
"ollamaGenModel": {
"model": "llama3.1:8b-instruct-q8_0",
"baseUrl": "http://localhost:11434",
"temperature": 0.5,
"contextWindow": 1948,
"lcModel": {
"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,
"k": 100
},
"openAIGenModel": {
"model": "gpt-3.5-turbo",
"openAIApiKey": "",
"temperature": 0.5
},
"openAIEmbedModel": {
"model": "text-embedding-ada-002",
"openAIApiKey": "",
"similarityThreshold": 0.75,
"k": 100
},
"targetFolder": "Chats",
"defaultChatName": "New Chat",
"excludeFF": [
"Chats",
"*.excalidraw.md"
],
"isQuickSettingsOpen": true,
"isVerbose": false,
"isOnboarded": true,
"hideIncognitoWarning": false,
"isAutostart": true
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,10 @@
{
"id": "smart-second-brain",
"name": "Smart Second Brain",
"description": "Interact with your privacy focused assistant, leveraging Ollama or OpenAI, making your second brain even smarter.",
"author": "Leo310, nicobrauchtgit",
"authorUrl": "https://github.com/nicobrauchtgit",
"version": "1.3.0",
"minAppVersion": "1.5.0",
"isDesktopOnly": true
}

File diff suppressed because one or more lines are too long

View file

@ -20,8 +20,23 @@
"icon": "lucide-file",
"title": "q&a"
}
},
{
"id": "41f581a321cadf2a",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "conflict-files-obsidian-git.md",
"mode": "source",
"source": false
},
"icon": "lucide-file",
"title": "conflict-files-obsidian-git"
}
}
],
"currentTab": 1,
"stacked": true
}
],
@ -178,8 +193,18 @@
"obsidian-git:Open Git source control": false
}
},
"active": "ba82a2242fc4a714",
"active": "41f581a321cadf2a",
"lastOpenFiles": [
"Autonomous Networking/notes/q&a.md",
"conflict-files-obsidian-git.md",
"Foundation of data science/notes/3 Multi Class Binary Classification.md",
"Foundation of data science/notes/2 Logistic Regression.md",
"Foundation of data science/images/Pasted image 20241029130844.png",
"Foundation of data science/images/Pasted image 20241029125726.png",
"Foundation of data science/images/Pasted image 20241029123613.png",
"Foundation of data science/images/Pasted image 20241029122255.png",
"Chats/New Chat.md",
"Chats",
"Autonomous Networking/notes/8.md",
"Autonomous Networking/notes/2 RFID.md",
"Autonomous Networking/notes/4 WSN Routing.md",
@ -195,14 +220,8 @@
"Foundation of data science/images/Pasted image 20241025165130.png",
"Foundation of data science/images/Pasted image 20241025163314.png",
"Foundation of data science/images/Pasted image 20241025163040.png",
"Foundation of data science/images/Pasted image 20241025162426.png",
"Foundation of data science/images/Pasted image 20241025162234.png",
"Foundation of data science/images/Pasted image 20241025162152.png",
"Autonomous Networking/images/Pasted image 20241025092932.png",
"Autonomous Networking/notes/q&a.md",
"Autonomous Networking/notes/3 WSN MAC.md",
"Autonomous Networking/notes/7 RL.md",
"conflict-files-obsidian-git.md",
"Autonomous Networking/slides/AutonomousNet-Class11-2122-Performance_of_action_selection_methods_UCB.pdf",
"Biometric Systems/notes/4. Face recognition.md",
"Biometric Systems/slides/LEZIONE5_NEW_More about face localization.pdf",
@ -214,7 +233,6 @@
"Biometric Systems/notes/3. Recognition Reliability.md",
"Autonomous Networking/slides/5 Drones.pdf",
"Biometric Systems/slides/LEZIONE4_Face introduction and localization.pdf",
"Foundation of data science/slides/IP CV Basics.pdf",
"Foundation of data science/slides/Untitled.md",
"Autonomous Networking/notes/4 WSN pt. 2.md",
"Biometric Systems/notes/1. Introduction.md",
@ -223,9 +241,6 @@
"Biometric Systems/final notes/2. Performance indexes.md",
"().md",
"a.md",
"[[[LEZIONE2_Indici_di_prestazione.pdf.md",
"[LEZIONE2_Indici_di_prestazione.pdf.md",
"Biometric Systems/final notes/1. Introduction.md",
"Untitled.canvas"
]
}