Skip to content

Commit

Permalink
chore: linting and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisVLRT committed Jan 16, 2024
1 parent 92ec42b commit bb42143
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions backend/user_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
from datetime import datetime, timedelta
from typing import Optional

import argon2
from jose import jwt
from pydantic import BaseModel
import argon2

from backend.database import Database

Expand Down Expand Up @@ -56,10 +56,10 @@ def authenticate_user(username: str, password: bytes) -> bool | User:
user = get_user(username)
if not user:
return False

if argon2.verify_password(user.hashed_password, password.encode("utf-8")):
return user

return False

def create_access_token(*, data: dict, expires_delta: Optional[timedelta] = None) -> str:
Expand Down
2 changes: 1 addition & 1 deletion catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ metadata:
spec:
type: service
owner: user:alexisVLRT
lifecycle: experimental
lifecycle: experimental
2 changes: 1 addition & 1 deletion docs/cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Here you will find a repository of configurations that have proved to work.
- [LLM Configuration samples](recipe_llms_configs.md)
- [Embedding model Configuration samples](recipe_embedding_models_configs.md)
- [Vector Store Configuration samples](recipe_vector_stores_configs.md)
- [Database Configuration samples](recipe_databases_configs.md)
- [Database Configuration samples](recipe_databases_configs.md)
4 changes: 2 additions & 2 deletions docs/recipe_embedding_models_configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This will download the selected model from the HF hub and make embeddings on the machine the backend is running on.
```shell
pip install sentence_transformers
```
```

```yaml
# backend/config.yaml
Expand Down Expand Up @@ -43,4 +43,4 @@ EmbeddingModelConfig: &EmbeddingModelConfig
source: BedrockEmbeddings
source_config:
model_id: 'amazon.titan-embed-text-v1'
```
```
4 changes: 2 additions & 2 deletions docs/recipe_llms_configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ LLMConfig: &LLMConfig

## Vertex AI gemini-pro

!!! warning
!!! warning

Right now Gemini models' safety settings are **very** sensitive, and is is not possible to disable them. That makes this model pretty much useless for the time being as it blocks most requests and/or responses.

Github issue to follow: https://github.com/langchain-ai/langchain/pull/15344#issuecomment-1888597151

!!! info "You will first need to login to GCP"
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ mkdocs
mkdocs-techdocs-core
pymdown-extensions
mkdocs_monorepo_plugin
argon2-cffi
argon2-cffi

0 comments on commit bb42143

Please sign in to comment.