OthersideAI / chronology

MIT License
900 stars 189 forks source link

fetch_max_search_doc needs an independent example #5

Closed patrickwalton closed 3 years ago

patrickwalton commented 3 years ago

It doesn't run independently without await. Running by itself:

semantic_search(query, documents)

yields the error

RuntimeWarning: coroutine 'fetch_max_search_doc' was never awaited

bramses commented 3 years ago

I can add this to the documentation as well. Are you calling the helper method directly or the fetch_max_search_doc wrapper?

bramses commented 3 years ago

Added a must be awaited header to all functions that need to be awaited: https://github.com/OthersideAI/chronology/blob/main/README.md#fetch_max_search_doc