updated utils.. working on the api

This commit is contained in:
timothyafolami
2024-08-13 22:16:12 +01:00
parent 8150b0a132
commit dbcb8da015
4 changed files with 19 additions and 12 deletions
+1 -4
View File
@@ -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}")