gabykim commited on
Commit
f8f5143
·
1 Parent(s): ee1878f

README quickstart

Browse files
Files changed (1) hide show
  1. README.md +67 -0
README.md CHANGED
@@ -53,6 +53,73 @@ flowchart LR
53
  E --> F[User Interface]
54
  ```
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  ## Architecture
57
 
58
  KnowLang uses several key technologies:
 
53
  E --> F[User Interface]
54
  ```
55
 
56
+
57
+ ## Quick Start
58
+
59
+ ### Installation
60
+
61
+ ```bash
62
+ pip install knowlang
63
+ ```
64
+
65
+ ### Basic Usage
66
+
67
+ 1. First, parse and index your codebase:
68
+ ```bash
69
+ # For a local codebase
70
+ knowlang parse ./my-project
71
+
72
+ # For verbose output
73
+ knowlang -v parse ./my-project
74
+ ```
75
+
76
+ 2. Then, launch the chat interface:
77
+ ```bash
78
+ knowlang chat
79
+ ```
80
+
81
+ That's it! The chat interface will open in your browser, ready to answer questions about your codebase.
82
+
83
+ ### Advanced Usage
84
+
85
+ #### Custom Configuration
86
+ ```bash
87
+ # Use custom configuration file
88
+ knowlang parse --config my_config.yaml ./my-project
89
+
90
+ # Output parsing results in JSON format
91
+ knowlang parse --output json ./my-project
92
+ ```
93
+
94
+ #### Chat Interface Options
95
+ ```bash
96
+ # Run on a specific port
97
+ knowlang chat --port 7860
98
+
99
+ # Create a shareable link
100
+ knowlang chat --share
101
+
102
+ # Run on custom server
103
+ knowlang chat --server-name localhost --server-port 8000
104
+ ```
105
+
106
+ ### Example Session
107
+
108
+ ```bash
109
+ # Parse the transformers library
110
+ $ knowlang parse ./transformers
111
+ Found 1247 code chunks
112
+ Processing summaries... Done!
113
+
114
+ # Start chatting
115
+ $ knowlang chat
116
+
117
+ 💡 Ask questions like:
118
+ - How is tokenization implemented?
119
+ - Explain the training pipeline
120
+ - Show me examples of custom model usage
121
+ ```
122
+
123
  ## Architecture
124
 
125
  KnowLang uses several key technologies: