Skip to content

Commit 053b38a

Browse files
committedJun 2, 2023
init
0 parents  commit 053b38a

16 files changed

+2115
-0
lines changed
 

‎.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Enforce Unix newlines
2+
* text=auto eol=lf

‎.github/workflows/tests.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
paths:
6+
- 'chatdocs/**'
7+
- setup.py
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
name: Python ${{ matrix.python }} on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os:
18+
- ubuntu-latest
19+
- macos-latest
20+
- windows-latest
21+
python:
22+
- '3.x'
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- uses: actions/setup-python@v4
28+
with:
29+
python-version: ${{ matrix.python }}
30+
31+
- name: Install Dependencies
32+
env:
33+
HNSWLIB_NO_NATIVE: 1
34+
run: |
35+
python -m pip install --upgrade pip
36+
pip install .
37+
38+
- name: Test add
39+
run: chatdocs add examples
40+
41+
- name: Test chat
42+
run: chatdocs chat 'Why was the NATO created?' --model marella/gpt-2-ggml --download --lib avx

0 commit comments

Comments
 (0)