INNER CODE UNIT · Python
response
yifanfeng97/Hyper-Extract · hyperextract/cli/cli.py:1139
response = ka.chat(query, **chat_kwargs)
console.print()
console.print(response.content)
console.print()
except KeyboardInterrupt:
console.print("\n[dim]Goodbye![/dim]")
console.print()
console.print("[dim]Other useful commands:[/dim]")
console.print(f"[dim] he show {ka_path} # Visualize[/dim]")
console.print(f'[dim] he search {ka_path} "keyword" # Search[/dim]')
console.print(f"[dim] he info {ka_path} # View info[/dim]")
break
except Exception as e:
console.print(f"[red]Error:[/red] {e}")
@app.command(name="tag")
def tag(