Dear friends,
This is the fastest free AI available at the moment (GPT4All):
I do appreciate if you download it and check if the EXE is running for you.
Its over 3 gigs. Be patient, it will take time :-)
You can also download the same included files from github directly:
I wanted to share mines just to asure that we all test the same EXE :-)
This morning meanwhile I was testing and helping on some python code of GPT4All dev team I realized (I saw and debugged the code) that they just were creating a process with the EXE and routing stdin and stdout, so I thought it is a perfect ocassion to use the geat processes functions developed by Prezmek!
So here you have a very early gpt4all.prg to do it. IT DOES NOT WORK YET but I guess
you may want to participate in this amazing adventure.
go.bat
@setlocal
@call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
c:\harbour\bin\win\msvc64\hbmk2 gpt4all.prg -comp=msvc64
gpt4all.exe
@endlocal
gpt4all.prg (we only reach to show the prompt ">" routed from GPT4All EXE)
function Main()
local hProcess, hStdIn, hStdOut, hStdErr, cBuffer, nSize := 1024, cMsg := ""
hProcess = hb_processOpen( "gpt4all-lora-quantized-win64.exe", @hStdIn, @hStdOut, @hStdErr, .t. )
? "GPT4All running..."
cBuffer = Space( 1024 )
while ( nReaded := hb_PRead( hStdOut, @cBuffer, nSize, 500 ) ) == 0
InKey( 0.1 )
end
? nReaded, AllTrim( cBuffer ), "Hi my friend, how are you ?"
FWrite( hStdIn, "Hi my friend, how are you ?" + Chr( 13 ) )
while ( nReaded := hb_PRead( hStdOut, @cBuffer, nSize, 500 ) ) == 0
InKey( 0.1 )
end
? nReaded, AllTrim( cBuffer )
while .t.
cBuffer = Space( nSize )
nReaded = hb_PRead( hStdOut, @cBuffer, nSize, 500 )
if nReaded > 0
cMsg += Left( cBuffer, nReaded )
endif
if nReaded < 0
exit
endif
end
? cMsg
hb_processClose( hProcess, .t. )
FClose( hStdIn )
FClose( hStdOut )
FClose( hStdErr )
return nil
You may take the data of your DBFs, SQL values, external PDFs,
your email account, github repos, etc... and connect that data with your local
and free GPT4All EXE and make any query you or your user may need. This concept
is named "langChain" as it is the foundation of the chatGPT plugins.
Think "langChain" as "senses" for the "artificial brain" :-) This is being developed now
for GPT4All too. So we may have all that power quite soon. In the meantime we should
be able to send large queries to GPT4All. If you want to submit another line, end your input in '\' (explained by GPT4All)
I assume you may want to participate in this amazing Harbour new adventure and I do appreciate your time and cooperation.
best regards