updated utils.. working on the api
This commit is contained in:
@@ -7,16 +7,13 @@ from loggings.logging_config import logger
|
||||
|
||||
|
||||
|
||||
# loading the embedded data
|
||||
embed_db = load_embedded_data()
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
logger.info("Receiving the search query")
|
||||
query = input("Enter the search query: ")
|
||||
logger.info(f"Searching for {query}")
|
||||
page_content, all, pages = search(embed_db, query)
|
||||
page_content, all, pages = search(query)
|
||||
logger.info("Search completed")
|
||||
logger.info(f"Page content: {page_content}")
|
||||
print(f"Page content: {page_content}")
|
||||
|
||||
Reference in New Issue
Block a user