Skip to content

Commit 7a67fce

Browse files
authored
Clean up/harmonize READMEs (#55)
1 parent 82ca0a2 commit 7a67fce

File tree

3 files changed

+10
-63
lines changed

3 files changed

+10
-63
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# TileDB Vector Search
66

7-
*TileDB-Vector-Search* is a C++ library and Python interface to Vector Search built onto of the [TileDB Storage Engine](https://github.com/TileDB-Inc/TileDB).
7+
*TileDB-Vector-Search* is a C++ library and Python API for vector search built on top of the [TileDB Storage Engine](https://github.com/TileDB-Inc/TileDB).
88

99
# Quick Links
1010

@@ -29,6 +29,8 @@ conda install -c tiledb tiledb-vector-search
2929

3030
# Contributing
3131

32-
We welcome contributions, please see [`CONTRIBUTING.md`](CONTRIBUTING.md) for suggestions and
33-
development-build instructions. For larger features, please open an issue to discuss goals and
34-
approach in order to ensure a smooth PR integration and review process.
32+
We welcome contributions. Please see [`Building`](Building.md) for
33+
development-build instructions. For large new
34+
features, please open an issue to discuss goals and approach in order
35+
to ensure a smooth PR integration and review process. All contributions
36+
must be licensed under the repository's [MIT License](../LICENSE).

apis/python/README.md

Lines changed: 3 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
## Build and install with pip
1313

14-
(TODO: DOES NOT WORK YET)
14+
See `setup.py` for supported configuration overrides, including the libtiledb path.
1515

1616
```
17-
CMAKE_ARGS="-DTileDB_DIR=/Users/inorton/work/bld/TileDB-2.15/rel/dist/lib/cmake/TileDB" pip install -e
17+
pip install -e .
1818
```
1919

2020
## Direct build, then export PYTHONPATH
@@ -53,59 +53,4 @@ export PYTHONPATH= ~/work/bld/fvp-build/python
5353

5454
```
5555
import tiledbvspy
56-
```
57-
58-
# ====
59-
60-
X. Usage example
61-
62-
```
63-
In [1]: import tiledbvspy
64-
65-
In [2]: v = tiledbvspy.get_v()
66-
67-
In [3]: v_np = np.array(v)
68-
---------------------------------------------------------------------------
69-
NameError Traceback (most recent call last)
70-
Input In [3], in <cell line: 1>()
71-
----> 1 v_np = np.array(v)
72-
73-
NameError: name 'np' is not defined
74-
75-
In [4]: import tiledbvspy, numpy as np
76-
77-
In [5]: v_np = np.array(v)
78-
79-
In [6]: v_np
80-
Out[6]: array([1., 2., 3., 4., 5., 6., 7.], dtype=float32)
81-
82-
In [7]: v_np[1] = 10
83-
84-
In [8]: v
85-
Out[8]: <tiledbvspy.Vector_f32 at 0x103030db0>
86-
87-
In [9]: v[1]
88-
Out[9]: 2.0
89-
90-
In [10]: v[0]
91-
Out[10]: 1.0
92-
93-
In [11]: v[2]
94-
Out[11]: 3.0
95-
96-
In [12]: v[3]
97-
Out[12]: 4.0
98-
99-
In [13]: v_np_view = np.array(v, copy=False)
100-
101-
In [14]: v_np_view
102-
Out[14]: array([1., 2., 3., 4., 5., 6., 7.], dtype=float32)
103-
104-
In [15]: v_np_view[2] = 12.5
105-
106-
In [16]: v_np_view
107-
Out[16]: array([ 1. , 2. , 12.5, 4. , 5. , 6. , 7. ], dtype=float32)
108-
109-
In [17]: v[2]
110-
Out[17]: 12.5 # original data modified
111-
```
56+
```

documentation/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Quick Links
1010

1111
* [Build Instructions](https://tiledb-inc.github.io/TileDB-Vector-Search/documentation/Building.html)
12-
* [TileDB Documentation](https://tiledb-inc.github.io/TileDB-Vector-Search/)
12+
* [Documentation](https://tiledb-inc.github.io/TileDB-Vector-Search/)
1313
* [Python API reference](https://tiledb-inc.github.io/TileDB-Vector-Search/documentation/reference/)
1414

1515
# Quick Installation

0 commit comments

Comments
 (0)