mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 10:45:42 +01:00
"Refactored main function to take hide_source and mute_stream parameters for controlling output. Added argparse for command-line argument parsing. StreamingStdOutCallbackHandler and source document display are now optional based on user input. Introduced parse_arguments function to handle command-line arguments. Also, updated README.md to reflect these changes."
This commit is contained in:
parent
ad64589c8f
commit
9fb7f07e3c
2 changed files with 51 additions and 11 deletions
23
README.md
23
README.md
|
|
@ -81,6 +81,29 @@ Note: you could turn off your internet connection, and the script inference woul
|
|||
|
||||
Type `exit` to finish the script.
|
||||
|
||||
|
||||
### Script Arguments
|
||||
The script also supports optional command-line arguments to modify its behavior:
|
||||
|
||||
- `--hide-source` or `-S`: Use this flag to disable printing of the source documents used for answers. By default, the source documents are printed.
|
||||
|
||||
```shell
|
||||
python privateGPT.py --hide-source
|
||||
```
|
||||
|
||||
- `--mute-stream` or `-M`: Use this flag to disable LLM standard output streaming response, which by default prints progress to the console.
|
||||
|
||||
```shell
|
||||
python privateGPT.py --mute-stream
|
||||
```
|
||||
|
||||
You can combine these options if needed:
|
||||
|
||||
```shell
|
||||
python privateGPT.py --hide-source --mute-callback
|
||||
```
|
||||
|
||||
|
||||
# How does it work?
|
||||
Selecting the right local models and the power of `LangChain` you can run the entire pipeline locally, without any data leaving your environment, and with reasonable performance.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue