Skip to content

Commit

Permalink
[paddle-pipelines] Add pipelines documentation (#8308)
Browse files Browse the repository at this point in the history
* Add pipelines documentation

* Update pipeline docs

* remove rss module

* Update docs

* Update site url
  • Loading branch information
w5688414 authored Apr 23, 2024
1 parent 4039897 commit e67fd78
Show file tree
Hide file tree
Showing 23 changed files with 491 additions and 1 deletion.
20 changes: 20 additions & 0 deletions pipelines/.readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"

mkdocs:
configuration: mkdocs.yml

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
22 changes: 22 additions & 0 deletions pipelines/docs/package/agents/agents.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Agent Module

::: pipelines.agents.base
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
members:
- Agent
- ToolsManager
- Tool


::: pipelines.agents.agent_step
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
members:
- AgentStep
8 changes: 8 additions & 0 deletions pipelines/docs/package/docstore/elasticsearch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Elasticsearch Module

::: pipelines.document_stores.elasticsearch
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
8 changes: 8 additions & 0 deletions pipelines/docs/package/docstore/faiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# FAISS Module

::: pipelines.document_stores.faiss
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
8 changes: 8 additions & 0 deletions pipelines/docs/package/docstore/milvus2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Milvus2 Module

::: pipelines.document_stores.milvus2
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
29 changes: 29 additions & 0 deletions pipelines/docs/package/nodes/answer_extractor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Answer Extractor Module

::: pipelines.nodes.answer_extractor.answer_extractor_preprocessor
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.answer_extractor.answer_extractor
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.answer_extractor.qa_filter_postprocessor
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.answer_extractor.qa_filter
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
15 changes: 15 additions & 0 deletions pipelines/docs/package/nodes/document_intelligence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Document Intelligence Module

::: pipelines.nodes.document.document_intelligence
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.document.document_preprocessor
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
37 changes: 37 additions & 0 deletions pipelines/docs/package/nodes/file_converter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# File Converter Module

::: pipelines.nodes.file_converter.docx
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.file_converter.image
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.file_converter.markdown
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.file_converter.pdf
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60


::: pipelines.nodes.file_converter.txt
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
34 changes: 34 additions & 0 deletions pipelines/docs/package/nodes/llm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# LLM Module

::: pipelines.nodes.llm.chatglm
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60


::: pipelines.nodes.llm.ernie_bot
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60


::: pipelines.nodes.llm.history
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60


::: pipelines.nodes.llm.prompt_template
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
members:
- LLMPromptTemplate
30 changes: 30 additions & 0 deletions pipelines/docs/package/nodes/other.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Other Module

::: pipelines.nodes.other.docs2answers
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.other.join_answers
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.other.join_docs
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60


::: pipelines.nodes.other.route_documents
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
15 changes: 15 additions & 0 deletions pipelines/docs/package/nodes/preprocessor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Preprocesssor Module

::: pipelines.nodes.preprocessor.preprocessor
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.preprocessor.text_splitter
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
8 changes: 8 additions & 0 deletions pipelines/docs/package/nodes/question_generator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Question Generator Module

::: pipelines.nodes.question_generator.question_generator
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
8 changes: 8 additions & 0 deletions pipelines/docs/package/nodes/ranker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Ranker Module

::: pipelines.nodes.ranker.ernie_ranker
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
8 changes: 8 additions & 0 deletions pipelines/docs/package/nodes/reader.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Reader Module

::: pipelines.nodes.reader.ernie_dureader
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
52 changes: 52 additions & 0 deletions pipelines/docs/package/nodes/retriever.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Retriever Module

::: pipelines.nodes.retriever.dense
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.retriever.embedder
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.retriever.ernie_encoder
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60


::: pipelines.nodes.retriever.multimodal_retriever
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.retriever.parallel_retriever
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60


::: pipelines.nodes.retriever.sparse
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.retriever.web
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
15 changes: 15 additions & 0 deletions pipelines/docs/package/nodes/search_engine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Search Engine Module

::: pipelines.nodes.search_engine.providers
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.search_engine.web
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
23 changes: 23 additions & 0 deletions pipelines/docs/package/nodes/sentiment_analysis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Sentiment Analysis Module

::: pipelines.nodes.sentiment_analysis.senta_preprocessor
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60


::: pipelines.nodes.sentiment_analysis.senta_visualization
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60

::: pipelines.nodes.sentiment_analysis.senta
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
8 changes: 8 additions & 0 deletions pipelines/docs/package/pipelines/standard_pipelines.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Pipeline Module

::: pipelines.pipelines.standard_pipelines
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
8 changes: 8 additions & 0 deletions pipelines/docs/package/rest_api/application.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Application Module

::: rest_api.application
options:
summary: true
separate_signature: true
show_signature_annotations: true
line_length: 60
Loading

0 comments on commit e67fd78

Please sign in to comment.