# clone the repo and get into it
git clone https://github.com/imartinez/privateGPT && cd privateGPT
# install Python 3.11
pyenv install 3.11
# install make for running various scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ============================================================================== | |
| # DESCRIPTION: | |
| # Custom script to back up Hermes Agent settings. | |
| # | |
| # FILE PLACEMENT (Linux): | |
| # ~/hermes-backup.sh | |
| # | |
| # PERMISSIONS: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ./gemma-4-E2B-it-Q4_K_S.gguf | |
| # --- Core sampling (balanced for reasoning + reliability) --- | |
| PARAMETER temperature 0.55 | |
| PARAMETER top_p 0.9 | |
| PARAMETER top_k 40 | |
| PARAMETER repeat_penalty 1.1 | |
| # --- Context --- | |
| PARAMETER num_ctx 8192 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /**#@+ | |
| * Authentication Unique Keys and Salts. | |
| * | |
| * Change these to different unique phrases! | |
| * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} | |
| * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. | |
| * | |
| * @since 2.6.0 | |
| */ | |
| define('AUTH_KEY', 'put your unique phrase here'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .test{ | |
| color: red; | |
| font-size: 16px; | |
| } | |
| .content-body{ | |
| font-family: 'Siyam Rupali', 'SolaimanLipi', Vrinda, Arial, Helvetica, sans-serif; | |
| font-size: 16px; | |
| box-shadow: inset 1px -1px 1px #444,inset -1px 1px 1px #444; /* to make a border-like appearance */ | |
| width: 100%; /* to get the full width */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| abbr { | |
| position: relative; | |
| cursor: pointer; | |
| } | |
| abbr:hover::after { | |
| content: attr(title); | |
| position: absolute; | |
| white-space: nowrap; | |
| background-color: #666; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var finalEnlishToBanglaNumber={'0':'০','1':'১','2':'২','3':'৩','4':'৪','5':'৫','6':'৬','7':'৭','8':'৮','9':'৯'}; | |
| String.prototype.getDigitBanglaFromEnglish = function() { | |
| var retStr = this; | |
| for (var x in finalEnlishToBanglaNumber) { | |
| retStr = retStr.replace(new RegExp(x, 'g'), finalEnlishToBanglaNumber[x]); | |
| } | |
| return retStr; | |
| }; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Truncate Amount (in Indian format). | |
| * | |
| * Return amount in lac/koti etc. | |
| * | |
| * @param integer $amount Amount. | |
| * | |
| * @link https://stackoverflow.com/q/42571702/1743124 (Concept) | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| jQuery File Upload UI | |
| jQuery File Upload is a huge plugin with a lot of functionalities. | |
| And that made this a bit complex to find out how to implement a | |
| basic upload feature like: | |
| 1. Multiple file upload | |
| 2. Validate on file types | |
| 3. Validate on file size |
NewerOlder