Skip to content

Commit

Permalink
Merge pull request HamaWhiteGG#137 from HamaWhiteGG/dev
Browse files Browse the repository at this point in the history
Optimize Readme
  • Loading branch information
HamaWhiteGG authored Nov 30, 2023
2 parents 456bbc5 + 03509b4 commit c2b1240
Show file tree
Hide file tree
Showing 24 changed files with 72 additions and 229 deletions.
283 changes: 63 additions & 220 deletions README.md

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
Binary file added data/images/Google agent example output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/Google agent example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/Introduction to Langchain-Java.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/Langchain overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/SQL chains.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ CREATE TABLE IF NOT EXISTS titanic (
Embarked STRING
) WITH (
'connector' = 'filesystem',
'path' = '../../docs/extras/modules/titanic_flink.csv',
'path' = '../../data/extras/modules/titanic_flink.csv',
'format' = 'csv'
)""");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static void setup() {
spark.sql("CREATE DATABASE IF NOT EXISTS " + SCHEMA);
spark.sql("USE " + SCHEMA);

String csvFilePath = "../../docs/extras/modules/titanic.csv";
String csvFilePath = "../../data/extras/modules/titanic.csv";
Dataset<Row> df = spark.read()
.option("header", "true")
.option("inferSchema", "true")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class DirectoryLoaderTest {

@Test
void testLoad() {
String path = "../docs/extras/modules/";
String path = "../data/extras/modules/";

var loader = DirectoryLoader.builder()
.path(Path.of(path))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class HelpersTest {

@Test
void testDetectFileEncodings() throws IOException {
String filePath = "../docs/extras/modules/state_of_the_union.txt";
String filePath = "../data/extras/modules/state_of_the_union.txt";
var detectedEncoding = detectFileEncodings(filePath);

var expectedEncoding = new FileEncoding(UTF_8, 100, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class NotionDirectoryLoaderTest {

@Test
void testLoad() {
String path = "../docs/extras/use_cases/question_answering/notion_db/";
String path = "../data/extras/use_cases/question_answering/notion_db/";

var loader = new NotionDirectoryLoader(path);
var docs = loader.load();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private void awaitIndexReady() {
@Test
@Order(1)
public void testFromDocuments() {
String filePath = "../docs/extras/modules/state_of_the_union.txt";
String filePath = "../data/extras/modules/state_of_the_union.txt";
var loader = new TextLoader(filePath);
var documents = loader.load();
var textSplitter = CharacterTextSplitter.builder().chunkSize(1000).chunkOverlap(0).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
public class MilvusExample {

public static void main(String[] args) {
var filePath = "docs/extras/modules/state_of_the_union.txt";
var filePath = "data/extras/modules/state_of_the_union.txt";
var loader = new TextLoader(filePath);
var documents = loader.load();
var textSplitter = CharacterTextSplitter.builder().chunkSize(1000).chunkOverlap(0).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class RetrievalMarkdownExample {

public static void main(String[] args) {
// Load Notion page as a markdown file
String path = "docs/extras/use_cases/question_answering/notion_db/";
String path = "data/extras/use_cases/question_answering/notion_db/";
var loader = new NotionDirectoryLoader(path);
var docs = loader.load();
var mdFile = docs.get(0).getPageContent();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class RetrievalQaExample {
public static final String NAMESPACE = "txt";

public static void main(String[] args) {
var filePath = "docs/extras/modules/state_of_the_union.txt";
var filePath = "data/extras/modules/state_of_the_union.txt";
var loader = new TextLoader(filePath);
var documents = loader.load();
var textSplitter = CharacterTextSplitter.builder().chunkSize(1000).chunkOverlap(0).build();
Expand Down

0 comments on commit c2b1240

Please sign in to comment.