Comments (4)
Ok this should be fixed now in the v0.1.4 release - I definitely misunderstood the issue initially, thanks for investigating @bhazzard
from butterfish.
Hey @tompflynn - thanks for creating an issue, sorry this isn't working as expected. I'm going to try to reproduce the error right now.
One theory I have about the shell problem is that this code added recently is causing the problem. If that's the case a workaround would be to try running butterfish shell -p''
to see if that makes a difference.
Something that would be helpful - what's in your .bashprofile
or .profile
? I haven't seen anything like this on a handful of different shells so I'm wondering if there's some more custom/esoteric setup happening.
from butterfish.
Spun up a NixOS, wasn't able to replicate. My best guess is there's something a bit custom going on in a file that bash is loading like .bashprofile
or .profile
.
from butterfish.
To show what the ux seems to be on Mac using zsh...
Loading the index seems to work as expected
$ butterfish loadindex .
Loading indexes (not generating new embeddings) for .
Loaded 56 files
...But asking a question fails, claiming no index is loaded
butterfish indexquestion "is this working?"
Error: No vector index loaded
... Interestingly, indexsearch works just fine
butterfish indexsearch "is this working?"
/butterfish_index_test/testfile.txt : 0.8021
test content to diagnose index issue on Mac
...A quick look at the code
That error message in indexquestion comes from: https://github.com/bakks/butterfish/blob/f790d7d0aeb8e6520837b61ba7bfe40b53570697/butterfish/commands.go#L362-L364C4
if this.VectorIndex == nil {
return errors.New("No vector index loaded")
}
...comparing the working command indexsearch
with indexquestion
We can see that the first thing the indexsearch
command (which works) does is this.initVectorIndex(nil)
, whereas indexquestion
command seems to skip this step. My guess is that this is the culprit. But why would this work for some folks?
... but when I make that change (add this.initVectorIndex(nil)
), I get a new error
Error: Incorrect number of fields provided, prompt question requires fields ({filename}, {snippets}, {question})
This comes from:
Lines 68 to 72 in f790d7d
// check that the number of fields matches the number of arguments
if len(fields)*2 != len(args) {
fieldNames := strings.Join(fields, ", ")
return "", fmt.Errorf("Incorrect number of fields provided, prompt %s requires fields (%s)", prompt.Name, fieldNames)
}
When it is trying to load the prompt for "question".
from butterfish.
Related Issues (20)
- Feature Request: Safe Retrieval Plugin
- Error: [404:invalid_request_error] The model: `gpt-4` does not exist HOT 7
- Error: system message is required for full chat completion on summarize request HOT 3
- Feature Request: Enhanced Multiline and Clipboard Input in `butterfish prompt` HOT 13
- Feature Request:Azure OpenAI support HOT 5
- Feature Request: Shell Specific Shortcuts HOT 1
- LLM prompts get interpreted as commands with zsh/prezto HOT 3
- text-generation-webui label:question HOT 4
- Bugs with text in bash/gnome terminal HOT 5
- Question: Is this compatible with atuin HOT 4
- Feature Request: fish shell support HOT 3
- Prompt mode context HOT 1
- Feature request: offer ti runa command after `gencmd` suggestion
- Feature request: option to remove all timeouts/deadlines for slow local LLMs
- please close
- [nit] When specifying a locally hosted api endpoint, butterfish still demands an API token for OpenAI
- [Feature Request] Enable using other AI sources as a first class citizen
- [Bug] panic on interface conversion when using the verbose log option HOT 4
- using a local llm HOT 1
- How to install on Linux?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from butterfish.