Capstone-S17 / DuRAG

0 stars 0 forks source link

Generate 3 word query summary for session name. #7

Closed Dhanushkmr closed 8 months ago

Dhanushkmr commented 8 months ago

use Generator to generate a 3 word summary based on the query from the user (will be provided as str from backend)

Dhanushkmr commented 8 months ago

@treemanw1 this is how you get the chat session title:

generator = Generator() print( generator.query_summary( "What is the percentage of shares held by the largest shareholder of Samurai 2K Aerosol Limited as of 27 June 2023?" ) )