BB folk could describe this better than I can, but a given worksheet’s queries 
and answers become a cumulative record that the AI continues to be “aware” of. 
So I can refer back to an earlier answer on the sheet. 

I now have several sheets going on different topics.

Coders note: I often have to correct what it’s told me and ask it to try again.

#####
[amidst a longer conversation:]

Q: You said the subroutine xxxx() in the programming language YYY throws if fed 
a string rather than a number. That is incorrect, that routine simply issues a 
warning and returns an undefined value.

A: You are correct. I apologize for my error. The subroutine xxxx() in the 
programming language YYY issues a warning and returns an undefined value. 
However, the subroutine aaa() depends on receiving a defined argument from 
xxxx(), and throws if it doesn’t; therefore a test is needed for situations 
when xxxx() is provided an undefined value. Thank for helping me correct my 
answer.
#####

My practice has been to select only my latest query, which might include a code 
excerpt, and press Control-Return (small keyboard with no separate Enter key). 
Rich just explained how it works: If there is no selection, the worksheet sends 
the line containing the insertion point. If there is a selection, the selected 
text is sent.

A few times when I gave it a whole code module, after a pause it returned 
saying it has a character limit (4k) and cannot handle what I sent. I’m still 
poking that one to understand the behavior better. It might vary with the GPT 
version.

Mostly I’m using it for code review and test generation, rather than, say, 
writing something new. It’s kind of like having a compsci intern doing the code 
review - they “know" all kinds of stuff but they’re still learning which are 
the authoritative examples for applying code to a real life situation. So I 
clarify my code (and learn) while reviewing the code-reviewer’s review :)

    — Bruce

_bruce__van_allen__santa_cruz_ca_


> On Jan 16, 2024, at 8:54 AM, James Reynolds <[email protected]> 
> wrote:
> 
>>> There's not currently a mechanism for adding (or specifying, or changing) 
>>> context. If this is important to you, please let us know via email to 
>>> "[email protected]".
> 
> So is the entire worksheet sent, the line the cursor is on, or the selected 
> text?
> 
>> For some cases my description has taken multiple paragraphs, and often the 
>> first answer misses something so I refer back or re-state and query again.
> 
> It would be amazing to be able to play with the entire context.


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/28FB9E68-057F-4990-B8FF-70ABA66B9FBE%40cruzio.com.

Reply via email to