Skip to content

Commit

Permalink
Merge pull request #153 from PromtEngineer/issue-152-Bug-fix-in-show_…
Browse files Browse the repository at this point in the history
…sources-flag

Issue-152 bug fix with --show_sources
  • Loading branch information
PromtEngineer committed Jun 15, 2023
2 parents 8906385 + 511142d commit 28095bd
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions run_localGPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,13 @@ def load_model(device_type, model_id, model_basename=None):
)
@click.option(
"--show_sources",
default=False,
type=click.Choice(
[
False,
True,
]
),
"-s",
is_default=True,
help="Show sources along with answers (Default is False)",
)
def main(device_type, show_sources):
"""
This function implements the information retreival task.
This function implements the information retrieval task.
1. Loads an embedding model, can be HuggingFaceInstructEmbeddings or HuggingFaceEmbeddings
Expand Down

0 comments on commit 28095bd

Please sign in to comment.