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
#include <iostream> | |
#include <stdexcept> | |
#if defined(__APPLE__) | |
#include <mach/mach.h> | |
#endif | |
#include <thread> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Index: chromadb/segment/impl/vector/local_hnsw.py | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/chromadb/segment/impl/vector/local_hnsw.py b/chromadb/segment/impl/vector/local_hnsw.py | |
--- a/chromadb/segment/impl/vector/local_hnsw.py (revision Staged) | |
+++ b/chromadb/segment/impl/vector/local_hnsw.py (date 1722520928951) | |
@@ -202,6 +202,7 @@ | |
max_elements=DEFAULT_CAPACITY, |
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 argparse | |
import gc | |
from abc import ABC | |
from typing import List, Any, TypedDict, Optional | |
from overrides import EnforceOverrides, override | |
from pydantic import BaseModel, Field | |
from rich.console import Console | |
from rich.progress import track | |
from rich.prompt import Confirm |
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
[Unit] | |
Description = Chroma Service | |
After = network.target | |
[Service] | |
Type = simple | |
User = root | |
Group = root | |
WorkingDirectory = /chroma | |
ExecStart=/usr/local/bin/chroma run --host 127.0.0.1 --port 8000 --path /chroma/data --log-path /var/log/chroma.log |
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
[Unit] | |
Description = Chroma Docker Service | |
After = network.target docker.service | |
Requires = docker.service | |
[Service] | |
Type = forking | |
User = root | |
Group = root | |
WorkingDirectory = /home/admin/chroma |
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
#!/usr/bin/env python3 | |
# Call the script: python wal_clean.py ./chroma-test-compact | |
#!/usr/bin/env python3 | |
# Call the script: python wal_clean.py ./chroma-test-compact | |
import argparse | |
import importlib | |
import os | |
import sqlite3 | |
import typer |
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 | |
if ! command -v sqlite3 &> /dev/null; then | |
echo "sqlite3 could not be found. Please install sqlite3 and try again." | |
exit 1 | |
fi | |
PERSIST_DIR=$(realpath "$1") | |
BACKUP_DIR=$(realpath "$2") |
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
version: '3.9' | |
networks: | |
net: | |
driver: bridge | |
services: | |
chromadb: | |
image: chromadb/chroma:latest | |
volumes: | |
- ./chromadb:/chroma/chroma |
NewerOlder