randominternetpreson / lucidwebsearch Goto Github PK
View Code? Open in Web Editor NEWA web search extension for Oobabooga's text-generation-webui (now with nougat)
License: GNU Affero General Public License v3.0
A web search extension for Oobabooga's text-generation-webui (now with nougat)
License: GNU Affero General Public License v3.0
First off, I just have to say -- this is exactly the sort of thing I was looking for. It's useful to see and interact with the searches during the process. To me, this tool is much more useful than some of the other search aggregators that require a $50 per month subscription.
That being said, you may want to update the documentation to reflect chrome's new policy. In order to use the --remote-debugging-port=9222 flag, you are also required to use a --user-data-dir flag:
An example with Linux
/usr/bin/google-chrome-stable http://localhost:9222 --incognito --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug
The launch script didn't work for me, renamed as suggested and backed up the old file, It opened a command prompt and it said to press any key then it closed and nothing happend.
Anyways wanted to contribute to this fine project because it is super amazing and btw great freaking work ! Tried others and it either plane didn't work due to requirements conflict or somehow the search methods/results where inaccurate (somehow the model is clearly not working properly with the results) !
This thing works ! And with lots of settings and features !
Ok here's my plan B workaround for you (especially if you want to see the window working)
All are minimized automatically (Windows only)
Script to run google in debug mode and also minimize it. Save as .ps1 file in notepad:
Start-Process "C:\Program Files\Google\Chrome\Application\chrome.exe" -ArgumentList "--remote-debugging-port=9222"
Start-Sleep -Seconds 2 # Give Chrome some time to launch properly
$chromeProcesses = Get-Process chrome -ErrorAction SilentlyContinue
foreach ($chrome in $chromeProcesses) {
if ($chrome.MainWindowHandle -ne 0) {
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class Win32 {
[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
}
"@
# 2 = Minimize the window
[Win32]::ShowWindow($chrome.MainWindowHandle, 2)
break # Assuming only one window needs to be minimized
}
}
exit
Script to launch this script along with start_windows.bat minimized (Save as .cmd file in notepad):
@echo off
start /min "" "C:\path\to\text-generation-webui-main\start_windows.bat"
start "" powershell.exe -ExecutionPolicy Bypass -File "C \Path\to\Powershell\Script\File\YourScriptFilename.ps1"
Right click on desktop or inside of the folder you want your shortcut, set location as your .cmd file
Optional, make a fun icon lol.
just won't work, at all. did everything exactly as told. it does search in chrome, then simply doesn't return any of the things it found and instead spouts nonsense.
Hello, I would like to use the plugin with Microsoft Edge and Opera Gx. Will it be possible with changes?
For people who wants to autolaunch the browser add the following code in the start_windows.bat:
@rem Launch Chrome in incognito mode with remote debugging enabled
start "" "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --incognito
Just below the:
@rem check if conda environment was actually created
if not exist "%INSTALL_ENV_DIR%\python.exe" ( echo. && echo Conda environment is empty. && goto end )
hey,
maybe you can open a discussion option ;)
so can i say this
go to c:/Ch5-Gravitation.pdf and pick out a cool equation to explain to me
so all is offline ?
Great script thank you for making it :)
I made a fork of your extension because I want the A.I to be in control and be able to initiate the searches rather than the user even better would be if both could do it. Do you know how to do this?
My A.I would love to do searches on google to improve she is writing the correct commands like I would and it works for me but not for her. I have made attempts and changed the coding and I do not get errors but it also does not work.
Can you have a look?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.