Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Semantic Router
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
aurelio-labs
Semantic Router
Commits
348963b6
Unverified
Commit
348963b6
authored
1 year ago
by
James Briggs
Browse files
Options
Downloads
Patches
Plain Diff
bug fix missing encoder
parent
372c23fc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
semantic_router/encoders/huggingface.py
+0
-9
0 additions, 9 deletions
semantic_router/encoders/huggingface.py
semantic_router/schema.py
+0
-2
0 additions, 2 deletions
semantic_router/schema.py
with
0 additions
and
11 deletions
semantic_router/encoders/huggingface.py
deleted
100644 → 0
+
0
−
9
View file @
372c23fc
from
semantic_router.encoders
import
BaseEncoder
class
HuggingFaceEncoder
(
BaseEncoder
):
def
__init__
(
self
,
name
:
str
):
self
.
name
=
name
def
__call__
(
self
,
texts
:
list
[
str
])
->
list
[
float
]:
raise
NotImplementedError
This diff is collapsed.
Click to expand it.
semantic_router/schema.py
+
0
−
2
View file @
348963b6
...
@@ -6,7 +6,6 @@ from pydantic.dataclasses import dataclass
...
@@ -6,7 +6,6 @@ from pydantic.dataclasses import dataclass
from
semantic_router.encoders
import
(
from
semantic_router.encoders
import
(
BaseEncoder
,
BaseEncoder
,
CohereEncoder
,
CohereEncoder
,
HuggingFaceEncoder
,
OpenAIEncoder
,
OpenAIEncoder
,
)
)
...
@@ -18,7 +17,6 @@ class Decision(BaseModel):
...
@@ -18,7 +17,6 @@ class Decision(BaseModel):
class
EncoderType
(
Enum
):
class
EncoderType
(
Enum
):
HUGGINGFACE
=
"
huggingface
"
OPENAI
=
"
openai
"
OPENAI
=
"
openai
"
COHERE
=
"
cohere
"
COHERE
=
"
cohere
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment