mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-28 17:38:36 +00:00
commit
7bba1d911b
@ -25,7 +25,7 @@
|
|||||||
"In particular, we can employ a [splitting strategy](https://python.langchain.com/docs/integrations/document_loaders/source_code) that does a few things:\n",
|
"In particular, we can employ a [splitting strategy](https://python.langchain.com/docs/integrations/document_loaders/source_code) that does a few things:\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* Keeps each top-level function and class in the code is loaded into separate documents. \n",
|
"* Keeps each top-level function and class in the code is loaded into separate documents. \n",
|
||||||
"* Puts remaining into a seperate document.\n",
|
"* Puts remaining into a separate document.\n",
|
||||||
"* Retains metadata about where each split comes from\n",
|
"* Retains metadata about where each split comes from\n",
|
||||||
"\n",
|
"\n",
|
||||||
"## Quickstart"
|
"## Quickstart"
|
||||||
@ -94,7 +94,7 @@
|
|||||||
"We load the py code using [`LanguageParser`](https://python.langchain.com/docs/integrations/document_loaders/source_code), which will:\n",
|
"We load the py code using [`LanguageParser`](https://python.langchain.com/docs/integrations/document_loaders/source_code), which will:\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* Keep top-level functions and classes together (into a single document)\n",
|
"* Keep top-level functions and classes together (into a single document)\n",
|
||||||
"* Put remaining code into a seperate document\n",
|
"* Put remaining code into a separate document\n",
|
||||||
"* Retains metadata about where each split comes from"
|
"* Retains metadata about where each split comes from"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user