-
-
Save veekaybee/bf25025bc1c7c6e398e4564a1beccbe5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
retriever = KNNSearch(RedisConnection().conn(), ConfigManager()) | |
conf = ConfigManager() | |
def get_model_results(word: str, search_conn) -> str: | |
data = search_conn.top_knn(word) | |
return render_template("index.html", data=data, query=word) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment