This file contains hidden or 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
| pub fn assemble_qdrant_filter( | |
| current_user_id: Option<uuid::Uuid>, | |
| tag_set: Option<Vec<String>>, | |
| link: Option<Vec<String>>, | |
| time_range: Option<(String, String)>, | |
| filters: Option<serde_json::Value>, | |
| quote_words: Option<Vec<String>>, | |
| negated_words: Option<Vec<String>>, | |
| ) -> Filter { | |
| let mut filter = Filter::default(); |
This file contains hidden or 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
| import psycopg2 | |
| from dotenv import load_dotenv | |
| import os | |
| import json | |
| import requests | |
| # Load the .env file | |
| load_dotenv() | |
| origin_db_url = os.environ.get("ORIGIN_DB_URL") |
This file contains hidden or 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
| import psycopg2 | |
| from dotenv import load_dotenv | |
| import os | |
| import json | |
| import requests | |
| # Load the .env file | |
| load_dotenv() | |
| api_key = os.environ.get("API_KEY") | |
| api_url = os.environ.get("API_URL") |
This file contains hidden or 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
| import argparse | |
| import io | |
| import json | |
| import os | |
| import re | |
| import string | |
| import requests | |
| import tiktoken | |
| import pandas as pd | |
| import redis |
NewerOlder