You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -43,47 +47,16 @@ A "development" version of the Tutor is running live at [DL4DS Tutor -- Dev](htt
43
47
python -m modules.vectorstore.store_manager
44
48
```
45
49
- Note: You need to run the above command when you add new data to the `storage/data` directory, or if the `storage/data/urls.txt` file is updated.
46
-
- Alternatively, you can set `["vectorstore"]["embedd_files"]` to `True` in the `code/modules/config/config.yaml` file, which will embed files from the storage directory every time you run the below chainlit command.
47
50
48
-
5.**Run the Chainlit App**
51
+
6.**Run the FastAPI App**
49
52
```bash
50
-
chainlit run main.py
53
+
cd code
54
+
uvicorn app:app --port 7860
51
55
```
52
56
53
-
See the [docs](https://github.com/DL4DS/dl4ds_tutor/tree/main/docs) for more information.
54
-
55
-
## File Structure
56
-
57
-
```plaintext
58
-
code/
59
-
├── modules
60
-
│ ├── chat # Contains the chatbot implementation
61
-
│ ├── chat_processor # Contains the implementation to process and log the conversations
62
-
│ ├── config # Contains the configuration files
63
-
│ ├── dataloader # Contains the implementation to load the data from the storage directory
64
-
│ ├── retriever # Contains the implementation to create the retriever
65
-
│ └── vectorstore # Contains the implementation to create the vector database
66
-
├── public
67
-
│ ├── logo_dark.png # Dark theme logo
68
-
│ ├── logo_light.png # Light theme logo
69
-
│ └── test.css # Custom CSS file
70
-
└── main.py
71
-
72
-
73
-
docs/ # Contains the documentation to the codebase and methods used
57
+
## Documentation
74
58
75
-
storage/
76
-
├── data # Store files and URLs here
77
-
├── logs # Logs directory, includes logs on vector DB creation, tutor logs, and chunks logged in JSON files
78
-
└── models # Local LLMs are loaded from here
79
-
80
-
vectorstores/ # Stores the created vector databases
81
-
82
-
.env # This needs to be created, store the API keys here
83
-
```
84
-
-`code/modules/vectorstore/vectorstore.py`: Instantiates the `VectorStore` class to create the vector database.
85
-
-`code/modules/vectorstore/store_manager.py`: Instantiates the `VectorStoreManager:` class to manage the vector database, and all associated methods.
86
-
-`code/modules/retriever/retriever.py`: Instantiates the `Retriever` class to create the retriever.
59
+
Please visit the [docs](https://dl4ds.github.io/dl4ds_tutor/) for more information.
87
60
88
61
89
62
## Docker
@@ -97,4 +70,10 @@ docker run -it --rm -p 8000:8000 dev
97
70
98
71
## Contributing
99
72
100
-
Please create an issue if you have any suggestions or improvements, and start working on it by creating a branch and by making a pull request to the main branch.
73
+
Please create an issue if you have any suggestions or improvements, and start working on it by creating a branch and by making a pull request to the `dev_branch`.
74
+
75
+
Please visit [contribute](https://dl4ds.github.io/dl4ds_tutor/guide/contribute/) for more information on contributing.
76
+
77
+
## Future Work
78
+
79
+
For more information on future work, please visit [roadmap](https://dl4ds.github.io/dl4ds_tutor/guide/readmap/).
Copy file name to clipboardExpand all lines: code/.chainlit/config.toml
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ allow_origins = ["*"]
20
20
21
21
[features]
22
22
# Process and display HTML in messages. This can be a security risk (see https://stackoverflow.com/questions/19603097/why-is-it-dangerous-to-render-user-generated-html-or-javascript)
23
-
unsafe_allow_html = false
23
+
unsafe_allow_html = true
24
24
25
25
# Process and display mathematical expressions. This can clash with "$" characters in messages.
26
26
latex = true
@@ -49,6 +49,8 @@ auto_tag_thread = true
49
49
# Sample rate of the audio
50
50
sample_rate = 44100
51
51
52
+
edit_message = true
53
+
52
54
[UI]
53
55
# Name of the assistant.
54
56
name = "AI Tutor"
@@ -59,11 +61,11 @@ name = "AI Tutor"
59
61
# Large size content are by default collapsed for a cleaner ui
60
62
default_collapse_content = true
61
63
62
-
#Hide the chain of thought details from the user in the UI.
63
-
hide_cot = true
64
+
#Chain of Thought (CoT) display mode. Can be "hidden", "tool_call" or "full".
65
+
cot = "hidden"
64
66
65
67
# Link to your github repo. This will add a github button in the UI's header.
66
-
#github = "https://github.com/DL4DS/dl4ds_tutor"
68
+
github = "https://github.com/DL4DS/dl4ds_tutor"
67
69
68
70
# Specify a CSS file that can be used to customize the user interface.
69
71
# The CSS file can be served from the public directory or via an external link.
0 commit comments