Commit Graph

176 Commits

Author SHA1 Message Date
pancake b593ceb399 Initial import of the C rewrite of r2ai (very WIP just a PoC) 2023-12-07 12:42:32 +01:00
pancake b69ef96c04 Improved r2pipe with argument support
* `#!pipe r2pm -r r2ai examples/r2test.py arg1 arg2`
2023-12-06 18:38:36 +01:00
pancake d8eb08b0ef Improved support for venv and rlang command handling 2023-12-06 16:01:21 +01:00
pancake 95a2abe010 Initial support to index json files (WIP PoC) 2023-12-06 15:54:27 +01:00
pancake 49dbbf28ae Vim integration through adding support to use r2ai as a hashbang to run scripts 2023-12-06 15:12:14 +01:00
pancake a9f4a9d280 Initial Wikipedia integration via `wikit` 2023-12-06 14:56:04 +01:00
pancake 159af0d76a use ai to split relevant keywords for mastodon search 2023-12-06 13:27:22 +01:00
pancake af7665f143 Initial support for magicoder model and fix chat.reply 2023-12-06 10:51:40 +01:00
pancake a5c6ecb38d Initial support for Mastodon in vectordb 2023-12-06 10:51:09 +01:00
pancake 53b6273c8d Fix bug in -t 2023-12-06 10:50:04 +01:00
pancake 4b471cfa0b Fix -t 2023-12-05 19:26:35 +01:00
pancake 84ca584e6e Fix deepseek prompt template, as it's alpaca based 2023-12-05 12:14:23 +01:00
pancake c549a3ff6b Add git commit script example 2023-12-05 11:36:00 +01:00
pancake 08ecc7930b Add extra check when no model is selected 2023-12-05 11:33:37 +01:00
pancake c0ea855773 Fix "inr2" checks, now r2ai works via r2pipe, rlang and standalone 2023-12-04 19:47:13 +01:00
pancake 24d76dfef7 Fix systemprompt varname 2023-12-01 17:32:11 +01:00
pancake b1ba080e39 Make code compression algorithm recursive 2023-12-01 15:40:44 +01:00
pancake 0908d07072 Add function call example 2023-12-01 15:40:26 +01:00
pancake 74e9d15997 Support parsing large code (> 4KB) 2023-11-30 18:16:56 +01:00
pancake 8f9b7a89c8 Fix prompt and internal chat log for llama models 2023-11-29 15:39:28 +01:00
pancake f5354006f9 Also expose the self.model (WIP) 2023-11-29 12:24:21 +01:00
pancake 95bf393d8d Protect env and report better errors when using unexistent ones 2023-11-29 12:20:15 +01:00
pancake 2cf08f4949 Make context window, max tokens and temperature configurable 2023-11-29 12:15:55 +01:00
pancake 1f850701da Add support for scripting 2023-11-29 12:00:52 +01:00
pancake a6f8cabdd1 Initial PoC for the `aikeywords` implementation 2023-11-29 11:37:15 +01:00
pancake a50b163373 vectordb fails if nothing is indexed :{ 2023-11-29 11:36:59 +01:00
pancake 1fee6b29ae Makefile fails if not r2 is available 2023-11-29 11:36:42 +01:00
pancake efb473a884 Fix the role prompt for alpaca models 2023-11-28 15:38:42 +01:00
pancake 399fccc0dd Deprecate self.withresponse and just use env.chat.reply 2023-11-28 15:38:25 +01:00
pancake 5b88cbae9d Fix vectordb usage when mprt is not available (macOS) 2023-11-28 11:58:48 +01:00
pancake 2094464385 Use the best indexer model, be verbose and honor MAXMATCHES 2023-11-28 11:42:56 +01:00
pancake 22ddf1e278 Support indexing subdirectories and malformed markdown files 2023-11-28 11:29:04 +01:00
pancake 0ea7ac905e Add hint support for llama models and fix the vectordb integration 2023-11-28 11:17:48 +01:00
pancake b1fc0c4ec2 Fix chat.trim usage bug 2023-11-28 11:07:50 +01:00
pancake 2a34bc145f Add support for VectorDB (-e data.vectordb=true) 2023-11-28 11:05:01 +01:00
pancake e24fdcaa30 Add buggy esil2c role 2023-11-27 19:00:21 +01:00
pancake feea04b612 Move system message file into the doc/role 2023-11-27 19:00:06 +01:00
pancake 8f44e5fa45 Debug mode doesnt imply llama logging 2023-11-25 13:03:24 +01:00
pancake 3a717766fa Fix index.py when imported outside the project 2023-11-25 13:03:21 +01:00
pancake 27edd5be4f Initial support for festival tts 2023-11-25 12:46:01 +01:00
pancake da44728690 Load openai key from home 2023-11-21 21:06:30 +01:00
pancake 7fee94af8c Helper to filter messages when prompt is too large 2023-11-21 21:03:21 +01:00
pancake c07f5a0a5c Introduce chat.reply and dont include llama when using openai 2023-11-21 20:54:54 +01:00
pancake ec936edb9b Improve code snippet with -c and -i 2023-11-21 20:52:43 +01:00
pancake 6872e3a6c0 Remove tokentrim dependency 2023-11-21 20:51:25 +01:00
pancake ead2bce9dd Add data.local boolean config var to obey data.path or not 2023-11-21 01:04:53 +01:00
pancake d880bd730a improve mistral support 2023-11-21 01:04:42 +01:00
pancake 75ac1f2ddf Avoid dupplicated entries in the indexer 2023-11-21 01:04:26 +01:00
pancake b63832cf0e -e cannot delete keys anymore 2023-11-21 01:00:47 +01:00
pancake caeafe42c8 Fix exception spotted when using the Mistral 2023-11-21 00:26:23 +01:00