Skip to content

Commit

Permalink
update linter settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tylertitsworth committed Jan 4, 2024
1 parent 6441c5a commit ee4d322
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 48 deletions.
22 changes: 11 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "." # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "github-actions" # See documentation for possible values
directory: ".github/workflows" # Location of package manifests
schedule:
interval: "weekly"
---
version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "." # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "github-actions" # See documentation for possible values
directory: ".github/workflows" # Location of package manifests
schedule:
interval: "weekly"
4 changes: 3 additions & 1 deletion .github/linters/.hadolint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
ignored:
- DL3006
- DL3008
- DL3008
- DL3009
- DL3059
1 change: 0 additions & 1 deletion .github/linters/.python-lint

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Lint

on: # yamllint disable-line rule:truthy
push: null
pull_request: null

jobs:
build:
Expand All @@ -27,3 +26,5 @@ jobs:
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTIONS_COMMAND_ARGS: '-ignore SC.*'
VALIDATE_PYTHON_PYLINT: false
VALIDATE_PYTHON_ISORT: false
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ enforcement ladder](https://github.com/mozilla/diversity).

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
https://www.contributor-covenant.org/translations.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ollama/ollama

RUN apt-get update -y && apt-get install -y \
RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \
git \
python3 \
python3-pip
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ ollama create volo -f ./Modelfile

1. Download a model of choice from [Huggingface](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) with `git clone https://huggingface.co/<org>/<modelname> model/<modelname>`.
2. If your model of choice is not in `GGUF` format, convert it with `docker run --rm -v $PWD/model/<modelname>:/model ollama/quantize -q q4_0 /model`.
2. Modify the [Modelfile's](Modelfile) `FROM` line to contain the path to the `q4_0.bin` file in the modelname directory.
3. Modify the [Modelfile's](Modelfile) `FROM` line to contain the path to the `q4_0.bin` file in the modelname directory.

### Create Vector Database

Expand Down
58 changes: 29 additions & 29 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---
data_dir: ./data
# Huggingface
embeddings_model: sentence-transformers/all-mpnet-base-v2
introduction: Ah my good fellow!
# Sources
mediawikis:
# - dnd4e
- dnd5e
# - darksun
- dragonlance
- eberron
# - exandria
- forgottenrealms
- greyhawk
# - planescape
# - ravenloft
# - spelljammer
# Ollama
model: volo
question: How many eyestalks does a Beholder have?
settings:
num_sources: 4
repeat_penalty: 1.3
temperature: 0.4
top_k: 20
top_p: 0.35
# Sources Path
source: ./sources
---
data_dir: ./data
# Huggingface
embeddings_model: sentence-transformers/all-mpnet-base-v2
introduction: Ah my good fellow!
# Sources
mediawikis:
# - dnd4e
- dnd5e
# - darksun
- dragonlance
- eberron
# - exandria
- forgottenrealms
- greyhawk
# - planescape
# - ravenloft
# - spelljammer
# Ollama
model: volo
question: How many eyestalks does a Beholder have?
settings:
num_sources: 4
repeat_penalty: 1.3
temperature: 0.4
top_k: 20
top_p: 0.35
# Sources Path
source: ./sources
3 changes: 1 addition & 2 deletions provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ async def create_completion(self, request):

# https://github.com/langchain-ai/langchain/issues/14980
result = await make_async(self.llm.stream)(
input=messages,
**request.prompt.settings
input=messages, **request.prompt.settings
)

def create_event_stream():
Expand Down

0 comments on commit ee4d322

Please sign in to comment.