- qdrant/qdrant#2538, qdrant/qdrant#2662, qdrant/qdrant#2661 - Add new recommendation engine, score results directly from examples
- qdrant/qdrant#2693 - Extend recommendation API, support raw vectors along with point IDs as input
- qdrant/qdrant#2139, qdrant/qdrant#2315, qdrant/qdrant#2766 - Add support for filtering geo coordinates by polygon
- qdrant/qdrant#2599 - Add option to tune shard update parallelism, improve performance for large clusters
- qdrant/qdrant#2642, qdrant/qdrant#2717, qdrant/qdrant#2728, qdrant/qdrant#2741, qdrant/qdrant#2728, qdrant/qdrant#2746 - Distribute searches to other nodes if the current is busy, improve search laten
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
import random | |
import subprocess | |
import uuid | |
from qdrant_client import QdrantClient | |
from qdrant_client import models | |
client = QdrantClient(host="127.0.0.1", port=6333) | |
collection_name = "test" | |
page_size = 20 |
Machine:
- Linux 6.2
- 32GB RAM
- Swap disabled
Code:
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
[package] | |
name = "day06b" | |
version = "0.1.0" | |
authors = ["Tim Visee <[email protected]>"] | |
edition = "2021" | |
[dependencies] | |
rayon = "1.6" | |
[profile.release] |
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
[package] | |
name = "day06b" | |
version = "0.1.0" | |
authors = ["Tim Visee <[email protected]>"] | |
edition = "2021" | |
[profile.release] | |
codegen-units = 1 | |
lto = true | |
strip = true |
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
#!/bin/bash | |
# Loop through all 4 and 5 digit combinations | |
for pin in $(seq -f "%04g" 0 99999) | |
do | |
# Skip all pins not ending with 7 | |
[[ $pin == *7 ]] || continue | |
# Test code | |
echo "Testing: $pin" |
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
pub fn main() { | |
println!( | |
"{}", | |
// Read puzzle input | |
include_bytes!("../input.txt") | |
// For each line (each 10 character sequence, and a newline) | |
.chunks(11) | |
// Process the 10 character sequence, ignore the newline | |
.map(|b| b[..10] | |
.iter() |
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
/// Copy with timeout on X11. | |
/// | |
/// Keeps clipboard contents in clipboard even if application quits. Doesn't fuck with other | |
/// clipboard contents and reverts back to previous contents once a timeout is reached. | |
/// | |
/// Forks & detaches two processes to set/keep clipboard contents and to drive the timeout. | |
/// | |
/// Based on: https://docs.rs/copypasta-ext/0.3.2/copypasta_ext/x11_fork/index.html | |
fn copy_timeout_x11(data: &[u8], timeout: u64) -> Result<()> { | |
use copypasta_ext::{ |
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
11foot8 | |
18650masterrace | |
1911 | |
2b2t | |
3Dprinting | |
3dshacks | |
3kliksphilip | |
45thworldproblems | |
5September2020 | |
9CB9D65 |
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
$ ./artisan route:list | |
+--------+----------------------------------------+------------------------------------------------------------------------------------------------------+-----------------------------------------------------+-----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | |
| Domain | Method | URI | Name | Action | Middleware | | |
+--------+----------------------------------------+------------------------------------------------------------------------------------------------------+-----------------------------------------------------+---- |
NewerOlder