Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rag-flow-k8s
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package 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
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Masrna
rag-flow-k8s
Commits
e876f58b
There was an error fetching the commit references. Please try again later.
Unverified
Commit
e876f58b
authored
1 year ago
by
KevinHuSh
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
refine readme (#170)
parent
05298d56
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+12
-12
12 additions, 12 deletions
README.md
api/db/services/llm_service.py
+2
-2
2 additions, 2 deletions
api/db/services/llm_service.py
rag/llm/embedding_model.py
+1
-1
1 addition, 1 deletion
rag/llm/embedding_model.py
with
15 additions
and
15 deletions
README.md
+
12
−
12
View file @
e876f58b
...
@@ -47,19 +47,19 @@
...
@@ -47,19 +47,19 @@
## 🤺RagFlow vs. other RAG applications
## 🤺RagFlow vs. other RAG applications
| Feature | RagFlow | Langchain-Chatchat |
Dify.AI |
Assistants API | QAnythig | LangChain |
| Feature | RagFlow | Langchain-Chatchat | Assistants API | QAnythig | LangChain |
|---------|:---------:|:----------------:|:-----------:|:-----------:|:-----------:|
:-----------:|
|---------|:---------:|:----------------:|:-----------:|:-----------:|:-----------:|
|
**Well-Founded Answer**
| :white_check_mark: | :x: | :x: | :x: | :x: |
:x: |
|
**Well-Founded Answer**
| :white_check_mark: | :x: | :x: | :x: | :x: |
|
**Trackable Chunking**
| :white_check_mark: | :x: | :x: | :x: | :x: |
:x: |
|
**Trackable Chunking**
| :white_check_mark: | :x: | :x: | :x: | :x: |
|
**Chunking Method**
| Rich Variety | Naive | Naive |
Naive
| Naive | Naive |
|
**Chunking Method**
| Rich Variety | Naive | Naive | | Naive | Naive |
|
**Table Structure Recognition**
| :white_check_mark: | :x: |
:x:
| :x: | :x: | :x: |
|
**Table Structure Recognition**
| :white_check_mark: | :x: | | :x: | :x: | :x: |
|
**Structured Data Lookup**
| :white_check_mark: | :x: | :x: | :x: | :x: | :x: |
|
**Structured Data Lookup**
| :white_check_mark: | :x: | :x: | :x: | :x: | :x: |
|
**Programming Approach**
| API-oriented | API-oriented | API-oriented | API-oriented |
API-oriented |
Python Code-oriented |
|
**Programming Approach**
| API-oriented | API-oriented | API-oriented | API-oriented | Python Code-oriented |
|
**RAG Engine**
| :white_check_mark: | :white_check_mark: | :white_check_mark: |
:white_check_mark: |
:x: | :x: |
|
**RAG Engine**
| :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: |
|
**Prompt IDE**
| :white_check_mark: | :white_check_mark: | :white_check_mark: |
:white_check_mark: |
:x: | :x: |
|
**Prompt IDE**
| :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: |
|
**Supported LLMs**
| Rich Variety | Rich Variety |
Rich Variety |
OpenAI-only | QwenLLM | Rich Variety |
|
**Supported LLMs**
| Rich Variety | Rich Variety | OpenAI-only | QwenLLM | Rich Variety |
|
**Local Deployment**
| :white_check_mark: | :white_check_mark: |
:white_check_mark: |
:x: | :x: | :x: |
|
**Local Deployment**
| :white_check_mark: | :white_check_mark: | :x: | :x: | :x: |
|
**Ecosystem Strategy**
| Open Source | Open Source |
Open Source |
Close Source | Open Source | Open Source |
|
**Ecosystem Strategy**
| Open Source | Open Source | Close Source | Open Source | Open Source |
## 🔎 System Architecture
## 🔎 System Architecture
...
...
This diff is collapsed.
Click to expand it.
api/db/services/llm_service.py
+
2
−
2
View file @
e876f58b
...
@@ -84,7 +84,7 @@ class TenantLLMService(CommonService):
...
@@ -84,7 +84,7 @@ class TenantLLMService(CommonService):
if
model_config
[
"
llm_factory
"
]
not
in
EmbeddingModel
:
if
model_config
[
"
llm_factory
"
]
not
in
EmbeddingModel
:
return
return
return
EmbeddingModel
[
model_config
[
"
llm_factory
"
]](
return
EmbeddingModel
[
model_config
[
"
llm_factory
"
]](
model_config
[
"
api_key
"
],
model_config
[
"
llm_name
"
],
model_config
[
"
api_base
"
])
model_config
[
"
api_key
"
],
model_config
[
"
llm_name
"
],
base_url
=
model_config
[
"
api_base
"
])
if
llm_type
==
LLMType
.
IMAGE2TEXT
.
value
:
if
llm_type
==
LLMType
.
IMAGE2TEXT
.
value
:
if
model_config
[
"
llm_factory
"
]
not
in
CvModel
:
if
model_config
[
"
llm_factory
"
]
not
in
CvModel
:
...
@@ -98,7 +98,7 @@ class TenantLLMService(CommonService):
...
@@ -98,7 +98,7 @@ class TenantLLMService(CommonService):
if
model_config
[
"
llm_factory
"
]
not
in
ChatModel
:
if
model_config
[
"
llm_factory
"
]
not
in
ChatModel
:
return
return
return
ChatModel
[
model_config
[
"
llm_factory
"
]](
return
ChatModel
[
model_config
[
"
llm_factory
"
]](
model_config
[
"
api_key
"
],
model_config
[
"
llm_name
"
],
model_config
[
"
api_base
"
])
model_config
[
"
api_key
"
],
model_config
[
"
llm_name
"
],
base_url
=
model_config
[
"
api_base
"
])
@classmethod
@classmethod
@DB.connection_context
()
@DB.connection_context
()
...
...
This diff is collapsed.
Click to expand it.
rag/llm/embedding_model.py
+
1
−
1
View file @
e876f58b
...
@@ -51,7 +51,7 @@ class Base(ABC):
...
@@ -51,7 +51,7 @@ class Base(ABC):
class
HuEmbedding
(
Base
):
class
HuEmbedding
(
Base
):
def
__init__
(
self
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
"""
"""
If you have trouble downloading HuggingFace models, -_^ this might help!!
If you have trouble downloading HuggingFace models, -_^ this might help!!
...
...
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