Spaces:
Sleeping
Sleeping
order by score desc
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def get_parquet_urls(dataset: str) -> List[str]:
|
|
28 |
|
29 |
def run_command(query: str) -> pd.DataFrame:
|
30 |
try:
|
31 |
-
result = duckdb.execute("SELECT fts_main_data.match_bm25(id, ?) AS score, id, instruction, input, output FROM data WHERE score IS NOT NULL ORDER BY score;", [query])
|
32 |
print("Ok")
|
33 |
except Exception as error:
|
34 |
print(f"Error: {str(error)}")
|
|
|
28 |
|
29 |
def run_command(query: str) -> pd.DataFrame:
|
30 |
try:
|
31 |
+
result = duckdb.execute("SELECT fts_main_data.match_bm25(id, ?) AS score, id, instruction, input, output FROM data WHERE score IS NOT NULL ORDER BY score DESC;", [query])
|
32 |
print("Ok")
|
33 |
except Exception as error:
|
34 |
print(f"Error: {str(error)}")
|