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
If you are getting an "import not found" error, it is likely because the base folder is always `src`. Always run the program from the `src` folder or use the commands inside the Makefile.
8
+
9
+
If you have something in `src/lib` and want to use it, import it as follows:
10
+
11
+
```python
12
+
import lib # or
13
+
from lib import...
14
+
```
15
+
16
+
# Why are env.docker and .env different?
17
+
18
+
If you are only running the program using Docker, then you only need to worry about `.env.docker`.
19
+
20
+
As the addresses tend to be different in a Docker environment compared to a local environment, you need different values to resolve the addresses.
21
+
22
+
For example, if you have your program outside Docker (locally) and want to access a database, you may use:
23
+
24
+
```
25
+
POSTGRES_SERVER=localhost
26
+
```
27
+
28
+
If you run your program inside Docker, then you must use:
29
+
30
+
```
31
+
POSTGRES_SERVER=db
32
+
```
33
+
34
+
# How can i add my own LLM Strategy?
35
+
36
+
There is a `BaseLLMService` that you can extend to create your own strategy. You can then use it as follows:
my_strategy = CustomService() # instead of my_strategy = OLLAMAService()
43
+
llm_service = LLMServiceStrategy(my_strategy)
44
+
45
+
```
46
+
47
+
# What if my input data changes ?
48
+
49
+
We have a predefined structure that input must adhere to called `Content`. You can always adjust this to satisfy your input and convert it to a database model.
50
+
51
+
Inside the db model called `Findings`, there is a method `from_data` which can be modified to adapt the changes.
0 commit comments