Skip to content

Commit 3fdd057

Browse files
committed
commit
1 parent 73eab6a commit 3fdd057

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/how-to/document_search/search_documents.md

+10
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ class CustomSource(Source):
6464
pass
6565
```
6666

67+
To register protocol for your custom source class please update `pyproject.toml` within your project root with the following lines:
68+
69+
70+
```toml
71+
[tool.ragbits.core]
72+
modules_to_import = {sources=["python.path.to.custom_source:CustomSource"]}
73+
```
74+
75+
You can specify any number of custom source classes in that list - they would be imported and registered whenever you import `ragbits.document_search.documents.sources.base:SourceResolver`
76+
6777
## Processing, embedding and storing
6878
Having the documents loaded we can proceed with the pipeline. The next step covers the processing, embedding and storing. Embedders and Vector Stores have their own sections in the documentation, here we will focus on the processing.
6979

0 commit comments

Comments
 (0)