text stringlengths 3 8.33k | repo stringclasses 52
values | path stringlengths 6 141 | language stringclasses 35
values | sha stringlengths 64 64 | chunk_index int32 0 273 | n_tokens int32 1 896 |
|---|---|---|---|---|---|---|
'use client';
import { domAnimation, LazyMotion, MotionConfig } from 'motion/react';
import type { ReactNode } from 'react';
export function MotionProvider({ children }: { children: ReactNode }) {
return (
<LazyMotion features={domAnimation} strict>
<MotionConfig reducedMotion="user">{children}</MotionCon... | portfolio | providers/motion.tsx | TypeScript | b89f7ad9cd65852dc93f308ea95cf534f10c98b1cc57cf9628f04632fe87224d | 0 | 78 |
'use client';
import type { ThemeProviderProps } from 'next-themes';
import { ThemeProvider as NextThemesProvider } from 'next-themes';
export const ThemeProvider = ({ children, ...props }: ThemeProviderProps) => (
<NextThemesProvider {...props}>{children}</NextThemesProvider>
);
| portfolio | providers/theme.tsx | TypeScript | 4642ba3aeeecef886f3ed7eb9c3b5f999694418644073ee65a24844944f504d3 | 0 | 67 |
'use client';
import type { TargetAndTransition, VariantLabels } from 'motion/react';
import { m } from 'motion/react';
import { memo, type ReactNode } from 'react';
type ViewAnimationProps = {
initial?: VariantLabels | TargetAndTransition;
whileInView?: VariantLabels | TargetAndTransition;
animate?: VariantLab... | portfolio | providers/view-animation.tsx | TypeScript | 72eef1f24298544be88ed796797d943d24025931b2fa0e649dd560815948cd44 | 0 | 344 |
# Julian Schmidt
> AI/ML Engineer building intelligent applications in Vienna, Austria.
This site is a personal portfolio and CV. Use the main pages for an overview; work and projects for detailed roles and project descriptions. Contact is available for professional inquiries.
## Main pages
- [Home](https://www.jul... | portfolio | public/llms.txt | Text | c341f911a3a073571141150a424cd73e342b433eda7f94bb6e3667f31c5b21ce | 0 | 260 |
User-Agent: *
Allow: /
Disallow: /admin/
Disallow: /api/
Sitemap: https://www.julianschmidt.cv/sitemap.xml
| portfolio | public/robots.txt | Text | e694854be0bca42156b8e41ae04a2e9dad2e64e3e638542fd227eb09f7623a0c | 0 | 33 |
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
# Mobile Tools for Java (J2M... | POS-23-24-Java | .gitignore | Git Ignore | bb5b802f5775feec5da12e81d88cc0f79a6031b33bb0b3d50c0576be27bf5073 | 0 | 199 |
# POS-23-24-Java
POS 2022/23 Java Assignment Repository
| POS-23-24-Java | README.md | Markdown | 54388cf66db4690f556117a4f12229a46df55fb8e60991eac0cf787c58bc6c94 | 0 | 15 |
package at.htldonaustadt.schmidt.areacalc;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// fetch circle data from the console
Scanner sc = new Scanner(System.in);
System.out.print("Enter the radius of the circle: ");
double radius = sc.nextD... | POS-23-24-Java | POS_20230906_Flaeche/src/at/htldonaustadt/schmidt/areacalc/Main.java | Java | 07314d690395a1217629145924d7784b76e3b4a5c23c577e2d2cc9af14b59aca | 0 | 169 |
Some Data Source
Todays Date: 07.09.2023
Some Integer: 187
Some Double: 6.9 | POS-23-24-Java | POS_20230907_FileReader/input.txt | Text | 1cf32e596c47ff3085feaff834e3aaaa24d16697464ea93d6eb1f67b7d563f17 | 0 | 17 |
package at.htldonaustadt.schmidt.demoFileReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
// Demo for File Reading
try (Scanner scanner = new Scanner(new File("input.txt"))) {
while (scan... | POS-23-24-Java | POS_20230907_FileReader/src/at/htldonaustadt/schmidt/demoFileReader/Main.java | Java | 495dbd6d593193edffd9ce7af55b47546ebd9540c1f622dced32320a52277e79 | 0 | 231 |
package at.htldonaustadt.schmidt.registrierung;
import at.htldonaustadt.schmidt.registrierung.backend.Signup;
public class Main {
public static void main(String[] args) {
Signup signup = new Signup();
signup.fetchData();
signup.printData();
}
} | POS-23-24-Java | POS_20230907_Registrierungsklasse/src/at/htldonaustadt/schmidt/registrierung/Main.java | Java | dbd86a09c9d7fec5cbf0753f2a51a5afd2af2f1a654f9655387bf31b444fa57c | 0 | 59 |
package at.htldonaustadt.schmidt.registrierung.backend;
import java.security.InvalidParameterException;
import java.util.InputMismatchException;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Signup {
// instance variables
private String name;
privat... | POS-23-24-Java | POS_20230907_Registrierungsklasse/src/at/htldonaustadt/schmidt/registrierung/backend/Signup.java | Java | f0f34c3d5c1f5d138d4a77e72d5b9f4b227dbbfb465265847f65497c307adaea | 0 | 491 |
package at.htldonaustadt.schmidt.scanneruebungen;
import at.htldonaustadt.schmidt.scanneruebungen.backend.ColorScanner;
public class Main {
public static void main(String[] args) {
ColorScanner scanner = new ColorScanner("mixed1.dat");
scanner.scanFile();
scanner.printMap();
... | POS-23-24-Java | POS_20230908_Scanner_Uebungen/src/at/htldonaustadt/schmidt/scanneruebungen/Main.java | Java | f35b140640a2d55e3371b0bbdf8102d11da1469524472cf5158c174b08119a2e | 0 | 265 |
package at.htldonaustadt.schmidt.scanneruebungen.backend;
import javax.swing.*;
import java.io.File;
import java.io.FileNotFoundException;
import java.lang.reflect.Array;
import java.lang.reflect.Type;
import java.security.InvalidParameterException;
import java.util.*;
public class ColorScanner {
private String ... | POS-23-24-Java | POS_20230908_Scanner_Uebungen/src/at/htldonaustadt/schmidt/scanneruebungen/backend/ColorScanner.java | Java | 61924ee85d6827df3ed36d48ce9d19b075f740292d7c4b71223caf645cf3de01 | 0 | 896 |
);
int count = 0;
for(String i : colors) {
if(i.equals(color)) {
count++;
}
}
return count;
}
public void scanFile() {
try (Scanner scanner = new Scanner(new File(fileName))) {
while (scanner.hasNext()) {
... | POS-23-24-Java | POS_20230908_Scanner_Uebungen/src/at/htldonaustadt/schmidt/scanneruebungen/backend/ColorScanner.java | Java | 21054119f69e39f4d8a306498369c720e58d937af347e9627a38a765fa706e4c | 1 | 231 |
### IntelliJ IDEA ###
out/
!**/src/main/**/out/
!**/src/test/**/out/
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
### VS Code ###
.vscode/
... | POS-23-24-Java | POS_20230911_Collections/.gitignore | Git Ignore | b1294ddfd0abee44b20f9af393f759ae82233f8a13c697fff1351cbdd5a2ebd0 | 0 | 135 |
package at.htldonaustadt.schmidt.tshirts;
import at.htldonaustadt.schmidt.tshirts.backend.Shop;
import at.htldonaustadt.schmidt.tshirts.backend.Sizes;
import at.htldonaustadt.schmidt.tshirts.backend.Verkauf;
import at.htldonaustadt.schmidt.tshirts.backend.helpers.MinMaxPrice;
import java.util.List;
public class Main... | POS-23-24-Java | POS_20230911_TShirtVerkaeufe/src/at/htldonaustadt/schmidt/tshirts/Main.java | Java | e63439d8d4e2d69fa23e31c2049824278f3f137db6ff6c5b14c23729458d60e3 | 0 | 238 |
package at.htldonaustadt.schmidt.tshirts.backend;
import at.htldonaustadt.schmidt.tshirts.backend.exceptions.InvalidSaleException;
import at.htldonaustadt.schmidt.tshirts.backend.helpers.MinMaxPrice;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.S... | POS-23-24-Java | POS_20230911_TShirtVerkaeufe/src/at/htldonaustadt/schmidt/tshirts/backend/Shop.java | Java | 8123005cfa79614fae965d1e9ecb0b5873121f7a7322a55e1631f0020d387820 | 0 | 721 |
package at.htldonaustadt.schmidt.tshirts.backend;
public enum Sizes {
S,
M,
L,
XL,
XXL,
XXXL
}
| POS-23-24-Java | POS_20230911_TShirtVerkaeufe/src/at/htldonaustadt/schmidt/tshirts/backend/Sizes.java | Java | 179b15c57187c24f0559f85d32b99447ecc6b32f6f28c4d67ba33ebab9b23704 | 0 | 27 |
package at.htldonaustadt.schmidt.tshirts.backend;
public class Verkauf {
// Instance variables
private Sizes size;
private String color;
private double unitPrice;
private int quantity;
// constructor
public Verkauf(Sizes size, String color, double unitPrice, int quantity) {
try ... | POS-23-24-Java | POS_20230911_TShirtVerkaeufe/src/at/htldonaustadt/schmidt/tshirts/backend/Verkauf.java | Java | 35a0ca6f6579b5c1dea9654e63355f3b420117d083541983b45945ae46d97106 | 0 | 355 |
package at.htldonaustadt.schmidt.tshirts.backend.exceptions;
public class InvalidSaleException extends RuntimeException {
// custom exception
public InvalidSaleException(String message) {
super(message);
}
}
| POS-23-24-Java | POS_20230911_TShirtVerkaeufe/src/at/htldonaustadt/schmidt/tshirts/backend/exceptions/InvalidSaleException.java | Java | 1db0f785faa3ca09009a6f37977749d3e6025bb653ecd5fb18be8d7aafc0ed40 | 0 | 37 |
package at.htldonaustadt.schmidt.tshirts.backend.helpers;
public class MinMaxPrice {
// helper class to store min and max prices
public double min;
public double max;
public MinMaxPrice(double min, double max) {
this.min = min;
this.max = max;
}
// toString overr
@Override... | POS-23-24-Java | POS_20230911_TShirtVerkaeufe/src/at/htldonaustadt/schmidt/tshirts/backend/helpers/MinMaxPrice.java | Java | d6479130f8ecabda1a4b80b8c444d668f6fc57493ff9076e3841412d7fd81efa | 0 | 97 |
# Project-CB | Project-CB | README.md | Markdown | ec6c85a97b4bcd2dd22eaf4346395f4ca40da6e2a60993c15361a5bf7cfcabe9 | 0 | 4 |
# Created by https://www.toptal.com/developers/gitignore/api/macos,windows,node,nextjs,vercel,turbo,storybookjs,react
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,windows,node,nextjs,vercel,turbo,storybookjs,react
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with... | qdrant-hackathon | .gitignore | Git Ignore | a009ab35e2e4982fd323fa2c5e60a7499ac852f957126ca86aad675794199485 | 0 | 896 |
://storybook.js.org/
storybook-static/
### Turbo ###
# Turborepo task cache
.turbo
### Vercel ###
### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BI... | qdrant-hackathon | .gitignore | Git Ignore | 72f852f55477ad7bc5493ce8106978d4abde56c3ee7c0db19dfc17f0624ba46a | 1 | 204 |
<div align="center">
<a href="https://nextjs.org">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./assets/cover.png">
<img alt="Interiorly logo" src="./assets/cover.png" width="100%">
</picture>
</a>
<h1>Interiorly</h1>
<p>Design your dream home using natural language — pow... | qdrant-hackathon | README.md | Markdown | b60fb04358e35dbda7d1ceb59de07d42ee42261ab76e3d11b5c13a7b3cf11ee6 | 0 | 896 |
this step.
**7. Upscale the Image**
The image is upscaled using a model to improve the quality of the image.
**8. Deliver in Real Time**
Progress updates stream to the browser via SSE, and the finished room is rendered in an interactive 360° viewer powered by Pannellum.
This streamlined flow highlights how Qdran... | qdrant-hackathon | README.md | Markdown | 8221b8e7734c1121bfc344efc86b1b3b1a3597606c4cfdac9751d711d6b31102 | 1 | 896 |
armchair-in-outdoor-white-90557886"
},
{
"url": "https://www.ikea.com/us/en/p/groensta-armchair-in-outdoor-gray-turquoise-20557875/",
"image_url": "https://www.ikea.com/us/en/images/products/groensta-armchair-in-outdoor-gray-turquoise__... | qdrant-hackathon | README.md | Markdown | 7d63336f0f78f9a9a2abda5af5fb33d6e973839f182a939c047e44e47ea7b7e5 | 2 | 896 |
-glass-door-beige-60494145/",
"image_url": "https://www.ikea.com/us/en/images/products/stensund-glass-door-beige__0944629_pe797368_s5.jpg?f=xu",
"description": "",
"is_selected": false,
"product_id": "stensund-glass-door-beige-60494... | qdrant-hackathon | README.md | Markdown | fd724f4f825fa06dfcf57d0513a3875b869091a0b5b6717b63fad86e5f6efd84 | 3 | 896 |
: "",
"is_selected": false,
"product_id": "finnala-sectional-4-seat-with-chaise-gunnared-beige-s99575715"
},
{
"url": "https://www.ikea.com/us/en/p/finnala-sectional-4-seat-with-chaise-gunnared-medium-gray-s5957571... | qdrant-hackathon | README.md | Markdown | 977af652fc7e56ba105f52c425fe66c64dfe39afc2b8eac95e7ee464b1c3e84c | 5 | 896 |
rating": 4.3,
"review_count": 450,
"rating_percentage": 86
},
"quick_facts": [],
"variants": [
{
"url": "https://www.ikea.com/us/en/p/docksta-table-white-white-s19324995/",
... | qdrant-hackathon | README.md | Markdown | 2d15403d7c745fc52a75283d9033eed4ba65e2088642e3b5db57428393155276 | 6 | 896 |
: Next.js API Routes, PostgreSQL with Drizzle ORM, Cloudflare R2 storage
- **Authentication**: NextAuth.js with session management and rate limiting
- **AI Models (Mostly via Replicate)**:
- `govirtualuk/pegasus` for 360° panorama generation
- `krthr/clip-embeddings` for visual similarity search
- `Pixtral 12B` ... | qdrant-hackathon | README.md | Markdown | c2b97c911ac15286079fc8035dabf2e312fd48d12249a86a1ebc346e2ed2a414 | 7 | 322 |
[project]
name = "vector-search-engine"
version = "1.0.0"
description = "A modular vector search engine for IKEA products using Qdrant, CLIP, and OpenAI embeddings"
authors = [
{name = "Julian S.", email = "julian.schmidt1005@gmail.com"}
]
readme = "README.md"
requires-python = ">=3.10,<4.0"
dependencies = [
"q... | qdrant-hackathon | qdrant/pyproject.toml | TOML | c88dfe78848790f300942de1556dd0d6f32eec0122d2889f3c325ae54345cbf8 | 0 | 353 |
# Vector Search Engine
A modular, production-ready vector search engine for IKEA products using Qdrant, CLIP, and OpenAI embeddings. Supports both text and image similarity search with a clean, extensible architecture.
## Features
- Text-to-text, image-to-image, and text-to-image search
- CLIP for images and text, O... | qdrant-hackathon | qdrant/README.md | Markdown | 90a0fb46ead9b721efaabdf1e75a9215469f382074fc0966146fb2e694f1ff00 | 0 | 896 |
:
--query TEXT Search query
--collection TEXT Collection to search
--limit INTEGER Number of results
--threshold FLOAT Similarity threshold
--use-clip Use CLIP instead of OpenAI
```
#### `search-image`
Search using image URLs.
```bash
poetry run vec... | qdrant-hackathon | qdrant/README.md | Markdown | 3f2d716ceecad68b21f962ab588cc7b22bcd28a275a0da492c3cf3b7aca64902 | 1 | 696 |
#!/usr/bin/env python3
"""Example script demonstrating the new vector search engine."""
import sys
from pathlib import Path
src_path = Path(__file__).parent.parent / "src"
sys.path.insert(0, str(src_path))
from vector_search import VectorSearchEngine, ProductLoader, Config, setup_logger
logger = setup_logger()
def... | qdrant-hackathon | qdrant/scripts/example.py | Python | 75afe9027212c7920bb88b2eb53bdc0c10f2af12b9e24de5552bfe13eae3b1dd | 0 | 688 |
"""
Scrapes IKEA product categories by interacting with dropdown menus.
Extracts category names, subcategories, and URLs for furniture items only.
"""
import json
import time
import logging
from typing import List, Dict, Any
from concurrent.futures import ThreadPoolExecutor, as_completed
from selenium import webdrive... | qdrant-hackathon | qdrant/scripts/get-categories.py | Python | 16e7284ddb5e8d2cad10f4f85fb5d6f25c34b6f67686fa3d1050d36959f2d20e | 0 | 896 |
", category_element)
time.sleep(0.5)
category_element.click()
time.sleep(2)
try:
dropdown = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.CSS_SELECTOR, 'div[tabindex="0"][role="listbox"]'))
)
exce... | qdrant-hackathon | qdrant/scripts/get-categories.py | Python | 4f0121c81411b615a89792b47fc2820d3556d1e949e0f238304a2aac927398be | 1 | 896 |
]
categories_to_process = []
for element in category_elements[2:]:
try:
category_name = element.text.strip()
category_url = element.get_attribute("href")
if category_name and category_name not in SKIP_CATEGORIES:
ca... | qdrant-hackathon | qdrant/scripts/get-categories.py | Python | 212f135589ff4477c5d597474bb4f96775c8423b8ea20cad3b5ba48945825bdd | 2 | 672 |
"""
Scrapes IKEA product details from all subcategories.
Handles pagination, extracts comprehensive product data, and uses multithreading for performance.
"""
import json
import time
import logging
import re
from typing import List, Dict, Any, Optional
from concurrent.futures import ThreadPoolExecutor, as_completed
fr... | qdrant-hackathon | qdrant/scripts/get-product-details.py | Python | cb86e111f6748d4936fda90d7dcf7f8a265297fb4afbec770ea5f43504cc2ce5 | 0 | 896 |
')
for variant_label in variant_labels:
try:
variant_link = variant_label.find_element(By.CSS_SELECTOR, '.plp-product-variant__link')
variant_img = variant_label.find_element(By.CSS_SELECTOR, '.plp-product-variant__img')
variant_text = variant... | qdrant-hackathon | qdrant/scripts/get-product-details.py | Python | 862466f13b116cc057e06e4af041c73643db5e186f82affd967f6ec7688dcdb6 | 1 | 896 |
]
current, total = get_progress_info(driver)
if total is None:
logger.warning(f"Could not find progress indicator for {url}")
total = 0
progress_bar = tqdm(total=total, desc=f"Loading products", unit="products")
while True:
try:
WebDriverWait(driver, 10... | qdrant-hackathon | qdrant/scripts/get-product-details.py | Python | 247fbb4c5537b3ba2136a481b24fc44f65f1d34fcd86584b7ebb95ca953d5dec | 2 | 896 |
:
logger.error("ikea_product_categories.json not found. Please run get-categories.py first.")
return
except json.JSONDecodeError as e:
logger.error(f"Error parsing categories JSON: {e}")
return
logger.info(f"Loaded {len(categories)} categories")
total_subcatego... | qdrant-hackathon | qdrant/scripts/get-product-details.py | Python | 847861c05eae5ed056ad7819ac87d7ad69f3dab265ac3171b00941970886f9be | 3 | 691 |
#!/usr/bin/env python3
"""Migration script to help transition from old structure to new modular structure."""
import json
import sys
from pathlib import Path
def migrate_products():
print("🔄 Migrating products to new structure...")
products_file = Path("out/ikea_products.json")
if not products_file.... | qdrant-hackathon | qdrant/scripts/migrate.py | Python | dad816b9303930f016d31fa22bba1c77c720eed8d9f85f36711c9a69915a7fb3 | 0 | 597 |
#!/usr/bin/env python3
"""Entry point script for the vector search engine."""
import sys
from pathlib import Path
src_path = Path(__file__).parent.parent / "src"
sys.path.insert(0, str(src_path))
from vector_search.cli.main import main
if __name__ == "__main__":
sys.exit(main())
| qdrant-hackathon | qdrant/scripts/vector_search.py | Python | 3771d32f8efc908eb644f74de24b59c409d686a16def97e7af9586725f77bcf8 | 0 | 81 |
"""Vector search engine for IKEA products using Qdrant and CLIP/OpenAI embeddings."""
from .core.search_engine import VectorSearchEngine
from .core.embedders import CLIPEmbedder, OpenAIEmbedder
from .core.qdrant_client import QdrantManager
from .data.product_loader import ProductLoader
from .utils.config import Config... | qdrant-hackathon | qdrant/src/vector_search/__init__.py | Python | eee015c59933d5d0cb51a9b5390d5cb2448700db20979564fc25c207a7649fb0 | 0 | 102 |
"""CLI interface for the vector search engine."""
from .main import main
__all__ = ["main"]
| qdrant-hackathon | qdrant/src/vector_search/cli/__init__.py | Python | 05bebe5b67d13d7b02c91b7d81293d14e964523263b6646aec75e3dcd9045a8c | 0 | 26 |
"""Main CLI interface for the vector search engine."""
import argparse
import sys
from pathlib import Path
from ..core.search_engine import VectorSearchEngine
from ..data.product_loader import ProductLoader
from ..utils.config import Config
from ..utils.logger import setup_logger
logger = setup_logger()
def build_... | qdrant-hackathon | qdrant/src/vector_search/cli/main.py | Python | e77ee99fb913ad8a04a5294d768d33cff47c09676d0fb04ddde5eb8d40de30ca | 0 | 896 |
searching by image: {e}")
return 1
def list_collections(args):
try:
Config.validate()
search_engine = VectorSearchEngine(
qdrant_url=Config.QDRANT_URL,
qdrant_api_key=Config.QDRANT_API_KEY
)
collections = search_engine.qdrant.get_co... | qdrant-hackathon | qdrant/src/vector_search/cli/main.py | Python | d1582089914aa285b5dfdcbd19f0876cecef680d2290b90fd3c087f66ab3ce12 | 1 | 896 |
add_parser("search-image", help="Search by image")
search_image_parser.add_argument("--query", required=True, help="Image URL")
search_image_parser.add_argument("--collection", default=Config.IMAGE_COLLECTION,
help="Collection to search")
search_image_parser.add_argument("... | qdrant-hackathon | qdrant/src/vector_search/cli/main.py | Python | db029ea3909312c725f353de12e6519d5b8409f60437dc68b2607ea15f31bdbc | 2 | 268 |
"""Core search engine modules."""
from .search_engine import VectorSearchEngine
from .embedders import CLIPEmbedder, OpenAIEmbedder
from .qdrant_client import QdrantManager
__all__ = ["VectorSearchEngine", "CLIPEmbedder", "OpenAIEmbedder", "QdrantManager"]
| qdrant-hackathon | qdrant/src/vector_search/core/__init__.py | Python | 46a7ed26fe01d98bccb112ca8f1dc206653144bd9d60c1b24b78152b000928cc | 0 | 47 |
"""Embedding generators using CLIP and OpenAI models."""
import logging
import requests
from typing import List, Optional
from PIL import Image
import io
import torch
from transformers import CLIPProcessor, CLIPModel
import openai
from abc import ABC, abstractmethod
logger = logging.getLogger(__name__)
class BaseEm... | qdrant-hackathon | qdrant/src/vector_search/core/embedders.py | Python | c41a7660223e058f3f7955a3a4ecd434ee77f4e050a6d21230f2f21ce7f92e46 | 0 | 691 |
"""Qdrant client wrapper for collection management and search."""
import logging
from typing import List, Dict, Any, Optional, Tuple
from qdrant_client import QdrantClient
from qdrant_client.models import (
Distance, VectorParams, PointStruct, CollectionInfo,
OptimizersConfigDiff, HnswConfigDiff, SearchRequest... | qdrant-hackathon | qdrant/src/vector_search/core/qdrant_client.py | Python | 47a387453fdb1c8e2643df4279bdf09a287620fcf9fb511b24e25c7dd1141bda | 0 | 896 |
: Optional[str] = None,
with_payload: bool = True,
with_vectors: bool = False
) -> Tuple[List[PointStruct], Optional[str]]:
try:
result = self.client.scroll(
collection_name=collection_name,
limit=limit,
offset=offset,
... | qdrant-hackathon | qdrant/src/vector_search/core/qdrant_client.py | Python | ed31c8825e3cf6ebc533c256ce667f294b51424c83cf8270cf711d03ebff1cd8 | 1 | 218 |
"""Main search engine combining Qdrant operations with embedding generation."""
import logging
from typing import List, Dict, Any, Optional, Union
from tqdm import tqdm
from .qdrant_client import QdrantManager
from .embedders import CLIPEmbedder, OpenAIEmbedder, BaseEmbedder
logger = logging.getLogger(__name__)
cl... | qdrant-hackathon | qdrant/src/vector_search/core/search_engine.py | Python | 342ff32eb536e763ba2892c5b2e400a63313f0cccaaa28d9e88c7987eb3248e3 | 0 | 896 |
.get_image_embedding(query_image_url)
if not query_embedding:
logger.error("Failed to generate query embedding")
return []
results = self.qdrant.search(
collection_name=collection_name,
query_vector=query_embedding,
limit=limi... | qdrant-hackathon | qdrant/src/vector_search/core/search_engine.py | Python | 83cf8a3038cfc7319fdda9e2968cea900002f068bf4148a16c0f65dfacf3a7ec | 1 | 810 |
"""Data loading and processing."""
from .product_loader import ProductLoader
__all__ = ["ProductLoader"]
| qdrant-hackathon | qdrant/src/vector_search/data/__init__.py | Python | 3835c1851e4cd8408b80525f370656c1f11877d3417c7c1f5aa066093ff52dc8 | 0 | 23 |
"""Product data loading and processing utilities."""
import json
import logging
from typing import List, Dict, Any, Optional
from pathlib import Path
logger = logging.getLogger(__name__)
class ProductLoader:
@staticmethod
def load_from_json(file_path: str) -> List[Dict[str, Any]]:
try:
l... | qdrant-hackathon | qdrant/src/vector_search/data/product_loader.py | Python | dac1e5c5d34bdde95ee4cfc4ea3e96a7b710ce44f685669caf27a1c54147dd7c | 0 | 628 |
"""Configuration and logging utilities."""
from .config import Config
from .logger import setup_logger
__all__ = ["Config", "setup_logger"]
| qdrant-hackathon | qdrant/src/vector_search/utils/__init__.py | Python | 00abc3fd460edaf41b829fd68c44d5b4aacab7053998a4b2abe6712f4ba98ffb | 0 | 32 |
"""Configuration management for the vector search engine."""
import os
from typing import Optional
from dotenv import load_dotenv
load_dotenv()
class Config:
# Qdrant settings
QDRANT_URL: str = os.getenv("QDRANT_URL", "http://localhost:6333")
QDRANT_API_KEY: Optional[str] = os.getenv("QDRANT_API_KEY")
... | qdrant-hackathon | qdrant/src/vector_search/utils/config.py | Python | aae238d50157f94ac08f15c2b59cb40cddedbfd18b2b21953346a5dd050d80b4 | 0 | 328 |
"""Logging configuration for the vector search engine."""
import logging
import sys
from typing import Optional
def setup_logger(
name: str = "vector_search",
level: int = logging.INFO,
format_string: Optional[str] = None
) -> logging.Logger:
if format_string is None:
format_string = '%(... | qdrant-hackathon | qdrant/src/vector_search/utils/logger.py | Python | d861bad7794a17e764de6401cf9a1aeb476670efc32d9df7fd951b7c06ef4317 | 0 | 156 |
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"files": {
"ignoreUnknown": false,
"ignore": [
"**/pnpm-lock.yaml",
"lib/db/migrations",
"lib/editor/react-renderer.tsx",
"node_modules",
".next",
"public",
".vercel"
]
},
"vcs": {
"enabled": ... | qdrant-hackathon | www/biome.jsonc | JSON | 35fe84dd065607a48c37e8e5003c80e5e4427c63e5a673b4c2a9462216dcc2f6 | 0 | 896 |
formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto"
}
},
... | qdrant-hackathon | www/biome.jsonc | JSON | 8c79b20559f40ce3b04b13d2b906211e5b5b110c2ae186fc23aaa718f2799c61 | 1 | 160 |
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "pub-*.r2.dev",
},
],
},
};
export default nextConfig;
| qdrant-hackathon | www/next.config.ts | TypeScript | da623ab59ea63202f914c2cc3b792dc6f651276786cc026c76e9c9f2e6f41654 | 0 | 53 |
{
"name": "www",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "next lint && biome lint --write --unsafe",
"lint:fix": "biome lint --write --unsafe",
"format": "biome format --write",
"db:generate": ... | qdrant-hackathon | www/package.json | JSON | 090464cdebc78427a6db290dba15561453ecb2dc355463134fbd128b01340133 | 0 | 896 |
-auth": "5.0.0-beta.25",
"next-themes": "^0.4.6",
"ogl": "^1.0.11",
"opencv-ts": "^1.3.6",
"pannellum-react": "^1.2.4",
"postgres": "^3.4.7",
"prop-types": "^15.8.1",
"react": "19.1.0",
"react-dom": "19.1.0",
"redis": "^5.8.2",
"replicate": "^1.1.0",
"resumable-stream": "^2.2... | qdrant-hackathon | www/package.json | JSON | fb5ea5d2bec964b4708620f5e1fc8c917aa56cd7edfe2a87b1edc44ffacf19f1 | 1 | 432 |
1px rgba(0, 0, 0, 0.02), 0 2px 2px rgba(0, 0, 0, 0.02), 0 4px 4px
rgba(0, 0, 0, 0.02), 0 8px 8px rgba(0, 0, 0, 0.02);
--shadow-lg:
0 1px 1px rgba(0, 0, 0, 0.02), 0 2px 2px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(
0,
0,
0,
0.02
), 0 8px 8px rgba(0, 0, 0, 0.02), 0 16px 16px rgba(0, 0, 0,... | qdrant-hackathon | www/app/globals.css | CSS | 11622215373bed041c8e293ce677eebc56e8b9836a91ab97b6d8b0379dcc25b4 | 2 | 699 |
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import { Toaster } from "@/components/ui/sonner";
import "./globals.css";
import { ThemeProvider } from "@/components/theme-provider";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const ... | qdrant-hackathon | www/app/layout.tsx | TypeScript | 27b1a167a30574ed98df2ac3a1042a3bfbc2c783bb6b00048f36ab44a71ef217 | 0 | 572 |
"use server";
import { z } from "zod";
import { createUser, getUser } from "@/lib/db/queries";
import { signIn } from "@/app/(auth)/auth";
const authFormSchema = z.object({
email: z.string().email(),
password: z.string().min(6),
});
export interface LoginActionState {
status: "idle" | "in_progress" | "succes... | qdrant-hackathon | www/app/(auth)/actions.ts | TypeScript | 76c6a0bbb2b2e0f1d0820d38aa5444fe0b8be91a57b54ef6c23130c3fb17ce29 | 0 | 447 |
import { compare } from "bcrypt-ts";
import NextAuth, { type DefaultSession } from "next-auth";
import Credentials from "next-auth/providers/credentials";
import { createGuestUser, getUser } from "@/lib/db/queries";
import { authConfig } from "@/app/(auth)/auth.config";
import { DUMMY_PASSWORD } from "@/lib/constants";... | qdrant-hackathon | www/app/(auth)/auth.ts | TypeScript | f8606c90d21f26b86f6a8e6fe3158eff46e046066e1910d90a961f86e7112bef | 0 | 495 |
"use client";
import Link from "next/link";
import { useRouter } from "next/navigation";
import { useActionState, useEffect, useState } from "react";
import { toast } from "sonner";
import { AuthForm } from "@/components/auth-form";
import { SubmitButton } from "@/components/submit-button";
import { login, type Logi... | qdrant-hackathon | www/app/(auth)/login/page.tsx | TypeScript | 72f4095224fef6836f55bbcfdfb04dd20c38e0be33bcc99e1a3f68f90572e443 | 0 | 632 |
"use client";
import Link from "next/link";
import { useRouter } from "next/navigation";
import { useActionState, useEffect, useState } from "react";
import { AuthForm } from "@/components/auth-form";
import { SubmitButton } from "@/components/submit-button";
import { register, type RegisterActionState } from "../ac... | qdrant-hackathon | www/app/(auth)/register/page.tsx | TypeScript | cb4da061943a9bc54941c27bac98d451e1fb74c3462bfa81347f9bb079a01756 | 0 | 648 |
"use server";
import { generateText, type UIMessage } from "ai";
import { cookies } from "next/headers";
import {
deleteMessagesBySceneIdAfterTimestamp,
getMessageById,
updateSceneVisiblityById,
} from "@/lib/db/queries";
import type { VisibilityType } from "@/components/visibility-selector";
import { myProvider... | qdrant-hackathon | www/app/(scene)/actions.ts | TypeScript | 18db149d786921b63bb9a215c1a85bfe44770fdb06e419cc358980c89020573f | 0 | 344 |
import { cookies } from "next/headers";
import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar";
import Script from "next/script";
import { DataStreamProvider } from "@/components/data-stream-provider";
import { Footer } from "@/components/footer";
import { Navbar } from "@/components/navbar";
import G... | qdrant-hackathon | www/app/(scene)/layout.tsx | TypeScript | 030479a3dbc1514c3c9dce0fdf2dd373483741bad64e7e452bf4ad691b6b608d | 0 | 237 |
import { cookies } from "next/headers";
import { Chat } from "@/components/chat";
import { DEFAULT_CHAT_MODEL } from "@/lib/ai/models";
import { generateUUID } from "@/lib/utils";
import { auth } from "../(auth)/auth";
import { redirect } from "next/navigation";
import { DataStreamHandler } from "@/components/data-str... | qdrant-hackathon | www/app/(scene)/page.tsx | TypeScript | 636413ee313ceac92e8c2917722963e83422020f0f576d4337d246787bbe3c95 | 0 | 307 |
import { auth } from "@/app/(auth)/auth";
import type { NextRequest } from "next/server";
import { getScenesByUserId } from "@/lib/db/queries";
import { ChatSDKError } from "@/lib/errors";
export async function GET(request: NextRequest) {
const { searchParams } = request.nextUrl;
const limit = Number.parseInt(sea... | qdrant-hackathon | www/app/(scene)/api/history/route.ts | TypeScript | 5c7a374c807eea7991b9ad0878e4c8230329c8b842a35463dab3e9744315fc5a | 0 | 228 |
import { getPublicScenes } from "@/lib/db/queries";
import type { Scene } from "@/lib/db/schema";
import { ChatSDKError } from "@/lib/errors";
export async function GET(request: Request) {
const { searchParams } = new URL(request.url);
const page = searchParams.get("page");
if (!page) {
return new ChatSDKEr... | qdrant-hackathon | www/app/(scene)/api/public-scenes/route.ts | TypeScript | f33447ea8938d113d93b6abd5ee148259eb9af8bb0524bd2567b342fa81566cb | 0 | 318 |
import { type NextRequest, NextResponse } from "next/server";
import { QdrantClient } from "@qdrant/qdrant-js";
const qdrant = new QdrantClient({
url: process.env.QDRANT_URL!,
apiKey: process.env.QDRANT_API_KEY,
});
export async function GET(request: NextRequest) {
try {
const { searchParams } = new URL(req... | qdrant-hackathon | www/app/(scene)/api/qdrant/points/route.ts | TypeScript | 7c9acb8b123c6511416f51bbc0ba0b6f6452d9e857f71eee4191c5eeabc31114 | 0 | 437 |
import { createUIMessageStream, JsonToSseTransformStream } from "ai";
import { auth, type UserType } from "@/app/(auth)/auth";
import {
deleteSceneById,
getSceneById,
getMessageCountByUserId,
getMessagesBySceneId,
saveScene,
saveMessages,
} from "@/lib/db/queries";
import { convertToUIMessages, generateUUID... | qdrant-hackathon | www/app/(scene)/api/scene/route.ts | TypeScript | 520f55b6814b75e210bbd4f82e0dc2b4a58e258da156c4d227723d342087bbd4 | 0 | 896 |
);
dataStream.write({
type: "data-sceneResult",
data: result,
transient: false,
});
return;
} catch (error) {
lastError = error as Error;
console.error(`Scene generation attempt ${attempt} failed:`, error);... | qdrant-hackathon | www/app/(scene)/api/scene/route.ts | TypeScript | a0d9f1f4dc36459b9b65730c987bb5599610bb5b203d8510e76d432cddffdc3b | 1 | 580 |
import { auth } from "@/app/(auth)/auth";
import { getSceneById, getVotesBySceneId, voteMessage } from "@/lib/db/queries";
import { ChatSDKError } from "@/lib/errors";
export async function GET(request: Request) {
const { searchParams } = new URL(request.url);
const chatId = searchParams.get("chatId");
if (!cha... | qdrant-hackathon | www/app/(scene)/api/vote/route.ts | TypeScript | ac967265b8d69a47a390e3940935e9746008e9ba3d2ed2273153ab6b60c32935 | 0 | 464 |
import UnifiedScenes from '@/components/unified-scenes'
export default function CommunityPage() {
return (
<div className="min-h-screen bg-transparent z-10">
<div className="container mx-auto py-8">
<UnifiedScenes />
</div>
</div>
)
}
| qdrant-hackathon | www/app/(scene)/community/page.tsx | TypeScript | 461f2d53ddf1ce30358a89f3274ea23a8761186ed55ac144919fdd2a09ea9fa8 | 0 | 67 |
import { VectorVisualization } from "@/components/vector-visualization";
const Page = () => {
return (
<div className="w-full h-screen">
<VectorVisualization collectionName="ikea_products" maxPoints={1000} />
</div>
);
};
export default Page;
| qdrant-hackathon | www/app/(scene)/db/page.tsx | TypeScript | 40fc653a7f8d509d91a959c5f0ec427995c186f1f877033690522d33b8df87c6 | 0 | 64 |
import UnifiedScenes from "@/components/unified-scenes";
export default async function Page() {
return (
<div className="relative bg-background/70 mt-16">
<UnifiedScenes />
</div>
);
}
| qdrant-hackathon | www/app/(scene)/history/page.tsx | TypeScript | 7906f0a2b0b1b2b26c2e8df63efd5fc2ee87dc75c8291c39180cf713e16e0df7 | 0 | 50 |
import { cookies } from "next/headers";
import { notFound, redirect } from "next/navigation";
import { auth } from "@/app/(auth)/auth";
import { Chat } from "@/components/chat";
import { getSceneById, getMessagesBySceneId } from "@/lib/db/queries";
import { DataStreamHandler } from "@/components/data-stream-handler";
... | qdrant-hackathon | www/app/(scene)/scene/[id]/page.tsx | TypeScript | b2ea2b4f9452fede8ffb00ee34fef09388338330856ec1ec4494683355b98080 | 0 | 439 |
import { useRef, useEffect } from 'react';
import { Renderer, Program, Mesh, Triangle, Vec2 } from 'ogl';
const vertex = `
attribute vec2 position;
void main(){gl_Position=vec4(position,0.0,1.0);}
`;
const fragment = `
#ifdef GL_ES
precision lowp float;
#endif
uniform vec2 uResolution;
uniform float uTime;
uniform fl... | qdrant-hackathon | www/components/animated-background.tsx | TypeScript | 9596380f881061860a1238088356f3b8a4e688f78823030bd18098069fa15f4f | 0 | 896 |
]=mat4(vec4(3.1832156,-13.738922,1.879223,3.233465),vec4(0.64300746,12.768129,1.9141049,0.50990224),vec4(-0.049295485,4.4807224,1.4733979,1.801449),vec4(5.0039253,13.000481,3.3991797,-4.5561905))*buf[6]+mat4(vec4(-0.1285731,7.720628,-3.1425676,4.742367),vec4(0.6393625,3.714393,-0.8108378,-0.39174938),vec4(0.,0.,0.,0.),... | qdrant-hackathon | www/components/animated-background.tsx | TypeScript | 060d80e1c78201ce81a2be15e4cf31efd6e87ec95f89e73d43884e30e44a4e22 | 1 | 896 |
-1.6451967))*buf[1]+mat4(vec4(0.604885,-7.800309,-7.213122,-2.741014),vec4(-3.522382,-0.12359311,-0.5258442,0.43852118),vec4(9.6752825,-22.853785,2.062431,0.099892326),vec4(-4.3196306,-17.730087,2.5184598,5.30267))*buf[2]+mat4(vec4(-6.545563,-15.790176,-6.0438633,-5.415399),vec4(-43.591583,28.551912,-16.00161,18.84728)... | qdrant-hackathon | www/components/animated-background.tsx | TypeScript | d0b3a85adad92c6450438e4c884e385310b62c10138c09bf66f55a754cee8e6a | 2 | 896 |
0.272854,0.),vec4(0.945728,0.8861938,1.2766753,0.))*buf[2]+mat4(vec4(-2.4218085,-1.968602,-4.35166,0.),vec4(-22.683098,-18.0544,-41.954372,0.),vec4(0.63792,0.5470648,1.1078634,0.),vec4(-1.5489894,-1.3075932,-2.6444845,0.))*buf[3]+mat4(vec4(-0.49252132,-0.39877754,-0.91366625,0.),vec4(0.95609266,0.7923952,1.640221,0.),v... | qdrant-hackathon | www/components/animated-background.tsx | TypeScript | 61764cf3fc9ebd1a54cfd227fabb0a86ae49fab61e18c16d3e603c0ec7c42454 | 3 | 896 |
(gl, { geometry, program });
const resize = () => {
const w = parent.clientWidth,
h = parent.clientHeight;
renderer.setSize(w * resolutionScale, h * resolutionScale);
program.uniforms.uResolution.value.set(w, h);
};
window.addEventListener('r... | qdrant-hackathon | www/components/animated-background.tsx | TypeScript | 217f57e2fcf0d2571c0190abba522ff883694ddb619fac49fe27187f4d97aa8a | 4 | 262 |
"use client"
import { motion } from "motion/react";
import type React from "react";
import { useEffect, useRef } from "react";
interface AnimatedGradientBackgroundProps {
/**
* Initial size of the radial gradient, defining the starting width.
* @default 110
*/
startingGap?: number;
/**
... | qdrant-hackathon | www/components/animated-gradient-background.tsx | TypeScript | e809081f43626bd3fc7e09ad32580b73832aea052ce71b454af2a33efc0fcb51 | 0 | 896 |
<motion.div
key="animated-gradient-background"
initial={{
opacity: 0,
scale: 1.5,
}}
animate={{
opacity: 1,
scale: 1,
transition: {
duration: 2,
ease: [... | qdrant-hackathon | www/components/animated-gradient-background.tsx | TypeScript | 1d1dc0a64f30d29a91eaa76c691496244743a230c78403529d86cd00ea5680e8 | 1 | 124 |
import Form from 'next/form';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
export function AuthForm({
action,
children,
defaultEmail = '',
}: {
action: NonNullable<
string | ((formData: FormData) => void | Promise<void>) | undefined
>;
c... | qdrant-hackathon | www/components/auth-form.tsx | TypeScript | e631e89004455c3f1f56c099135a9782042ad20c7ea8dafbf0eb644d3f49b7b6 | 0 | 325 |
"use client";
import { useEffect } from "react";
import { useState } from "react";
import { cn, fetcher, fetchWithErrorHandlers, generateUUID } from "@/lib/utils";
import type { Attachment, ChatMessage } from "@/lib/types";
import type { VisibilityType } from "./visibility-selector";
import type { Session } from "next... | qdrant-hackathon | www/components/chat.tsx | TypeScript | f7124ec41296802a5470de731acc20d9d151477ee03e3c9dd003b7adb8807016 | 0 | 896 |
status={status}
votes={votes}
messages={messages}
setMessages={setMessages}
regenerate={regenerate}
isReadonly={isReadonly}
isArtifactVisible={false}
session={session}
/>
)}
<div
className={cn(
"relative items-... | qdrant-hackathon | www/components/chat.tsx | TypeScript | 22e3e4fa1a373faf572c0251a11533705c8a655f1f015819f10e929835c35c13 | 1 | 431 |
"use client"
import { useState, useEffect, useCallback, useMemo, memo } from 'react'
import dynamic from 'next/dynamic'
import { Button } from './ui/button'
import { PlusSignIcon, ArrowLeft01Icon, ArrowRight01Icon } from 'hugeicons-react'
import { cn, } from '@/lib/utils'
import Link from 'next/link'
import type { Scen... | qdrant-hackathon | www/components/community-scenes.tsx | TypeScript | 860e98ce87060cf2b45ec21ee2fa9acf698a0adc73aa48ffd75ad04b1bdf28a2 | 0 | 896 |
/h3>
<p className="text-xs text-muted-foreground">
Created {formatDistanceToNow(new Date(createdAt), { addSuffix: true })}
</p>
</div>
</Link>
))
const CommunityScenes = ({ isMinified = false }: CommunityScenesProps) => {
const [isMounted, setIsMounted] = useStat... | qdrant-hackathon | www/components/community-scenes.tsx | TypeScript | eb9e0220e3ffb1a726144beadbf4f6c9428f24e41ac16beaf989f18b8097e69c | 1 | 896 |
}, [scenes])
if (!isMounted) {
return <CommunityScenesSkeleton isMinified={isMinified} />
}
if (error || isLoading && scenes.length === 0) {
return <CommunityScenesSkeleton isMinified={isMinified} />
}
if (scenes.length === 0 && !isLoading) {
return (
<div clas... | qdrant-hackathon | www/components/community-scenes.tsx | TypeScript | 8071a1c11377e30fafae51080e7f091065118dcdb1aa344a057162c9281cd655 | 2 | 896 |
size="sm"
onClick={goToPreviousPage}
disabled={currentPage === 0 || isLoading}
>
<ArrowLeft01Icon className="h-4 w-4" />
Previous
</Button>
... | qdrant-hackathon | www/components/community-scenes.tsx | TypeScript | 802a1d981212953090c79e1294bd1bbfa108a1ef19105297b3c84ecbbb1e7848 | 3 | 315 |
'use client';
import { Button } from '@/components/ui/button';
import { cn } from '@/lib/utils';
import { ArrowDownIcon } from 'lucide-react';
import type { ComponentProps } from 'react';
import { useCallback } from 'react';
import { StickToBottom, useStickToBottomContext } from 'use-stick-to-bottom';
export type Con... | qdrant-hackathon | www/components/conversation.tsx | TypeScript | 0cf47f63c9db361904082a074813786fef1047c1cefaa54853e6269a28f41429 | 0 | 361 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.